Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding note to README

  • Loading branch information...
commit 96bca82475b945ac9ebca0078e1ddda5fe5bf60f 1 parent bcbd53c
@mariano authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.