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