Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function fixFormData(array &$data, $entity)
 {
     parent::fixFormData($data, $entity);
     unset($data['id']);
     unset($data['lastLogin']);
     return true;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 protected function fixFormData(array &$data, $entity)
 {
     parent::fixFormData($data, $entity);
     unset($data['id']);
     unset($data['createdAt']);
     unset($data['updatedAt']);
     return true;
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 protected function fixFormData(array &$data, $entity)
 {
     parent::fixFormData($data, $entity);
     unset($data['role']);
     return true;
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 protected function fixFormData(array &$data, $entity)
 {
     parent::fixFormData($data, $entity);
     unset($data['id']);
     unset($data['lastLogin']);
     if ($entity instanceof User && $entity->getId() && !$this->container->get('oro_security.security_facade')->isGranted('ASSIGN', $entity)) {
         unset($data['owner']);
     }
     return true;
 }