/** * */ public function __construct() { if ($this->_typeName) { $this->_type = new Type($this->_typeName); $this->_type->setMixins($this->_mixins); $this->_type->setEntityType($this->_entityType); $this->_type->setEntityTypeColumn($this->_entityTypeColumn); $this->_type->setPrimaryColumns($this->_primaryColumns); } }
/** * @param \Platform\Type $type * @param array $config * @return \Platform\Type */ protected function configureType(\Platform\Type $type, array $config) { if (isset($config['entityType'])) { $type->setEntityType($config['entityType']); } if (isset($config['filter'])) { $type->setFilter($config['filter']); } if (isset($config['mixins'])) { foreach ($config['mixins'] as $mixin => $info) { $type->addMixin("entity_{$mixin}", $info); } } return $type; }