protected function initProcessor(\Psc\Doctrine\Processor $processor)
 {
     $processor->onProcessSetField('password', function ($entity, $field, $value, $type) {
         $entity->hashPassword($value);
     });
     parent::initProcessor($processor);
 }
Exemple #2
0
 protected function initProcessor(\Psc\Doctrine\Processor $processor)
 {
     $processor->setSynchronizeCollections('normal');
 }