Beispiel #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();
 }
Beispiel #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();
 }
 protected function configureListFields(ListMapper $listMapper)
 {
     parent::configureListFields($listMapper);
 }