/** * @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(); }
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); }