- WIP on entity save

This commit is contained in:
Dave Mc Nicoll committed 2020-01-31 16:38:48 -05:00
1 parent 5bd60129ea
commit d12623cc5e
5 files changed
+33 -220

No files matched your search

+1 -1
View File
@@ -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();