Пример #1
0
 /**
  * @param ErrorElement $errorElement
  * @param mixed $object
  */
 public function validate(ErrorElement $errorElement, $object)
 {
     exit('123');
     /* @var $object \Application\Sonata\UserBundle\Entity\User */
     parent::validate($errorElement, $object);
     $error = new ErrorElements($errorElement, $object);
     $error->validatePhone();
 }
Пример #2
0
 protected function configureShowFields(ShowMapper $showMapper)
 {
     parent::configureShowFields($showMapper);
     $showMapper->with('General')->add('empresa')->add('organizacion')->end()->with('Groups')->end()->with('Profile')->end()->with('Social')->end()->with('Security')->end();
 }
Пример #3
0
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
 }