コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function isReadOnly($options)
 {
     /** @var EntityConfigId $configId */
     $configId = $options['config_id'];
     $className = $configId->getClassName();
     if (!empty($className) && $this->typeHelper->isDictionary($className) && !$this->typeHelper->isSupportActivityEnabled($className)) {
         return true;
     }
     return parent::isReadOnly($options);
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 protected function isReadOnly($options)
 {
     /** @var EntityConfigId $configId */
     $configId = $options['config_id'];
     $className = $configId->getClassName();
     if (!empty($className)) {
         if ($this->typeHelper->isAssociationOwningSideEntity($className, $options['association_class'])) {
             return true;
         }
         if ($this->typeHelper->isDictionary($className)) {
             return true;
         }
     }
     return parent::isReadOnly($options);
 }