Permalink
Browse files

Adding note to README

  • Loading branch information...
1 parent bcbd53c commit 96bca82475b945ac9ebca0078e1ddda5fe5bf60f @mariano committed Jan 6, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.md
View
8 README.md
@@ -126,6 +126,10 @@ class User extends \li3_doctrine2\models\BaseEntity {
$this->email = $email;
}
+ public function getPassword() {
+ return $this->password;
+ }
+
public function setPassword($password) {
$this->password = !empty($password) ? Password::hash($password) : null;
}
@@ -141,6 +145,10 @@ class User extends \li3_doctrine2\models\BaseEntity {
?>
```
+You should note that if you make your model properties private, each property
+*should have* a getter and a setter method, otherwise validation and other
+features provided by `BaseEntity` won't work.
+
### Using the Doctrine shell to generate the schema ###
Once you have your model(s) created, you can use doctrine's shell to generate

0 comments on commit 96bca82

Please sign in to comment.