I use this tutorial as the basis for the Code Igniter / Doctrine project.
http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-3-user-signup-form
Instead of using as-is code for models, my project uses a YAML schema file to generate models
I got trapped because I have no idea how to present the following using YAML:
$this->hasMutator('password', '_encrypt_password');
(this is from the user model code, in the "Adding Mutators" section) In particular, I am having problems with the $ this-> hasMutator line
I searched googled to blue, looked for documentation for Doctrine, symfony (which I know uses Doctrine heavily) and even grep'd for a database of mutator links - I came out empty
Is there any way to present the string $ this-> hasMutator ('password', '_encrypt_password'); using Doctrine YAML?
source
share