title: How do I set a custom mutator with Doctrine YAML Schema?
body: <p>I'm using this tutorial as the basis for a Code Igniter / Doctrine based project. </p>
  
  <p><a href="http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-3-user-signup-form" rel="nofollow">http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-3-user-signup-form</a></p>
  
  <p>Instead of using the code as-is for the models, my project is using a YAML schema file to generate the models</p>
  
  <p>I've hit a snag, in that I've got no idea how to represent the following using YAML:</p>
  
  <pre><code>$this-&gt;hasMutator('password', '_encrypt_password');
  </code></pre>
  
  <p>(this is from the User model code, under 'Adding Mutators')
  Specifically, I'm having trouble with the $this->hasMutator line</p>
  
  <p>I've googled until blue, searched documentation for Doctrine, symfony (which I know uses Doctrine heavily) and even grep'd the codebase for references to mutators - I've come up empty</p>
  
  <p>Is there a way to represent the line $this->hasMutator('password', '_encrypt_password'); using Doctrine YAML?</p>