Ubiquity/orm/parser/Reflexion.php 1 location
|
@@ 190-196 (lines=7) @@
|
| 187 |
|
return $result; |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
public static function getAllJoinTables($models){ |
| 191 |
|
$result=[]; |
| 192 |
|
foreach ($models as $model){ |
| 193 |
|
$result=array_merge($result,self::getJoinTables($model)); |
| 194 |
|
} |
| 195 |
|
return $result; |
| 196 |
|
} |
| 197 |
|
} |
| 198 |
|
|
Ubiquity/orm/OrmUtils.php 1 location
|
@@ 80-86 (lines=7) @@
|
| 77 |
|
return $result; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
public static function getAllJoinTables($models){ |
| 81 |
|
$result=[]; |
| 82 |
|
foreach ($models as $model){ |
| 83 |
|
$result=array_merge($result,self::getJoinTables($model)); |
| 84 |
|
} |
| 85 |
|
return $result; |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
public static function getKeyFieldsAndValues($instance) { |
| 89 |
|
$kf=self::getAnnotationInfo(get_class($instance), "#primaryKeys"); |