- WIP on entity save
This commit is contained in:
1 parent
5bd60129ea
commit
d12623cc5e
5 files changed
+33
-220
No files matched your search
+1
-1
@@ -53,7 +53,7 @@ trait EntityTrait {
|
||||
|
||||
switch($relation->type) {
|
||||
case 'oneToMany':
|
||||
$repository->where( $baseEntity->field($relation->foreignKey), 866); # <<<<<<<<< CHANGE $THIS->ID WITH PROPER NOMENCLATURE
|
||||
$repository->where( $baseEntity->field($relation->foreignKey), 2166); # <<<<<<<<< CHANGE $THIS->ID WITH PROPER NOMENCLATURE
|
||||
|
||||
return $this->$name = $repository->loadAll();
|
||||
|
||||
|
||||
Reference in new issue
Block a user