예제 #1
0
 /**
  * Configurator.
  *
  * @param KConfig $config Property Configuration
  */
 public function setConfig(KConfig $config)
 {
     parent::setConfig($config);
     $this->_type_column = $config->type_column;
     $this->_child_column = $config->child_column;
     $this->_polymorphic = $config->polymorphic === true;
     if (!isset($this->_parent)) {
         $this->_polymorphic = true;
     }
 }
예제 #2
0
 /**
  * Configurator.
  *
  * @param KConfig $config Property Configuration
  */
 public function setConfig(KConfig $config)
 {
     parent::setConfig($config);
     $this->_entityset = $config->entityset;
     $this->_cardinality = $config->cardinality;
     if (is_numeric($this->_cardinality)) {
         $this->_cardinality = (int) $this->_cardinality;
     }
     $this->_delete_rule = $config->parent_delete;
     $this->_child_key = $config->child_key;
 }