/** * Get repository type * * @return string */ public function getRepoType() { return isset($this->_class->associationMappings['owner']) ? \XLite\Core\Database::getRepo($this->_class->associationMappings['owner']['targetEntity'])->getRepoType() : parent::getRepoType(); }