/** * 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; } }
/** * 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; }