diff --git a/examples/User.php b/examples/User.php index b6b5d1cb..aa4d1370 100644 --- a/examples/User.php +++ b/examples/User.php @@ -20,7 +20,7 @@ class User extends EMongoDocument */ public function getCollectionName() { - return 'user'; + return 'users'; } /** diff --git a/examples/UserAddress.php b/examples/UserAddress.php index e69de29b..f772cc24 100644 --- a/examples/UserAddress.php +++ b/examples/UserAddress.php @@ -0,0 +1,23 @@ +255), + array('house, apartment, zip', 'length', 'max'=>10), + ); + } + + public function attributeLabels() + { + return array( + 'zip' => 'Postal Code', + ); + } +}