/**
  * {@inheritdoc}
  */
 protected function setProperties($class, $entity, array $data)
 {
     if (isset($data['options'])) {
         $optionsData = $data['options'];
         unset($data['options']);
     }
     parent::setProperties($class, $entity, $data);
     if (isset($optionsData)) {
         $this->setOptions($class, $entity, $optionsData);
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function setProperties($class, $entity, array $data)
 {
     if (isset($data['requirements'])) {
         $requirementsData = $data['requirements'];
         unset($data['requirements']);
     }
     parent::setProperties($class, $entity, $data);
     if (isset($requirementsData)) {
         $this->setRequirements($class, $entity, $requirementsData);
     }
 }