mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 14:05:07 +03:00
fix
This commit is contained in:
parent
a80d99fdeb
commit
44862faa5a
|
@ -201,9 +201,16 @@ abstract class EntityORM extends Entity {
|
|||
}
|
||||
|
||||
public function _getRelations() {
|
||||
$sParentName=get_parent_class($this);
|
||||
$oEntityParent=new $sParentName();
|
||||
return array_merge($oEntityParent->_getRelations(),$this->aRelations);
|
||||
$sParent=get_parent_class($this);
|
||||
if(substr_count($sParent,'_Inherits_')) {
|
||||
$sParent = get_parent_class($sParent);
|
||||
}
|
||||
$aParentRelations=array();
|
||||
if(!in_array($sParent,array('Entity','EntityORM'))) {
|
||||
$oEntityParent=new $sParent();
|
||||
$aParentRelations=$oEntityParent->_getRelations();
|
||||
}
|
||||
return array_merge($aParentRelations,$this->aRelations);
|
||||
}
|
||||
|
||||
public function _getRelationsData() {
|
||||
|
|
Loading…
Reference in a new issue