Пример #1
0
 public function init()
 {
     if ($this->entityId === null) {
         $this->initErrors[] = "Не указан идентификатор сущности, которую необходимо удалить";
     }
     return parent::init();
 }
Пример #2
0
 public function init()
 {
     if ($this->entityId === null) {
         $this->initErrors[] = "Не указан идентификатор сущности (entityId)";
     }
     parent::init();
 }
Пример #3
0
 public function init()
 {
     if ($this->totalEntitiesCount === null) {
         $this->initErrors[] = "Не указано общее количество сущностей в базе данных (totalEntitiesCount)";
     }
     if ($this->entities === null) {
         $this->initErrors[] = "Не указаны сущности (entities)";
     }
     return parent::init();
 }
Пример #4
0
 public function init()
 {
     if ($this->entityId === null) {
         $this->initErrors[] = "Не задан идентификатор сущности (entityId)";
     }
     if ($this->requestContent === null) {
         $this->initErrors[] = "Не задано содержимое запроса на изменение сущности";
     }
     if ($this->validator === null) {
         $this->initErrors[] = "Не задан Validator";
     }
     if ($this->serializer === null) {
         $this->initErrors[] = "Не задан Serializer";
     }
     $result = parent::init();
     $this->PKFieldName = $this->classMetadata->getSingleIdentifierFieldName();
     return $result;
 }
 /**
  * @param Action $action
  */
 protected function initAction(Action &$action)
 {
     $action->setEntityManager($this->getEntityManager());
     $action->setClassName($this->entityClassFullName);
     $action->init();
 }
Пример #6
0
 public function init()
 {
     if ($this->requestContent === null) {
         $this->initErrors[] = "Не указаны данные запросы для создания сущности";
     }
     if ($this->validator === null) {
         $this->initErrors[] = "Не задан Validator";
     }
     if ($this->serializer === null) {
         $this->initErrors[] = "Не задан Serializer";
     }
     return parent::init();
 }