mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
fix ORM
This commit is contained in:
parent
4b11d8d9d1
commit
f703c0ebc8
|
@ -239,7 +239,7 @@ abstract class ModuleORM extends Module {
|
|||
/**
|
||||
* Если необходимо подцепить связанные данные
|
||||
*/
|
||||
if (isset($aFilter['#with'])) {
|
||||
if (count($aEntities) and isset($aFilter['#with'])) {
|
||||
if (!is_array($aFilter['#with'])) {
|
||||
$aFilter['#with']=array($aFilter['#with']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue