From c112bbdb22eee9b85de2d10eedf73cde663402cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dariusz=20G=C3=B3recki?= Date: Sun, 26 Dec 2010 19:31:31 +0100 Subject: [PATCH] Updated examples --- examples/User.php | 2 +- examples/UserAddress.php | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) 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', + ); + } +}