|
@@ -1516,7 +1516,7 @@ class PHP_CRUD_API {
|
1516
|
1516
|
return is_array($input)?$input:array($input);
|
1517
|
1517
|
}
|
1518
|
1518
|
|
1519
|
|
- protected function getRelationColumns($select) {
|
|
1519
|
+ protected function getRelationShipColumns($select) {
|
1520
|
1520
|
$keep = array();
|
1521
|
1521
|
foreach ($select as $table=>$keys) {
|
1522
|
1522
|
foreach ($keys as $key=>$other) {
|
|
@@ -1533,7 +1533,7 @@ class PHP_CRUD_API {
|
1533
|
1533
|
protected function findFields($tables,$columns,$exclude,$select,$database) {
|
1534
|
1534
|
$fields = array();
|
1535
|
1535
|
if ($select && ($columns || $exclude)) {
|
1536
|
|
- $keep = $this->getRelationColumns($select);
|
|
1536
|
+ $keep = $this->getRelationShipColumns($select);
|
1537
|
1537
|
} else {
|
1538
|
1538
|
$keep = false;
|
1539
|
1539
|
}
|