- Refractored Date/time fields
- Added an implode function on EntityCollection
This commit is contained in:
1 parent
538af38769
commit
07ba3f611b
4 files changed
+18
-9
No files matched your search
@@ -110,6 +110,10 @@ trait EntityTrait {
|
||||
$bridgeRelation = $bridgeEntity->searchFieldAnnotation($relation->field, new Relation() );
|
||||
$relationRelation = $bridgeEntity->searchFieldAnnotation($relation->foreignField, new Relation() );
|
||||
|
||||
if ($relationRelation === null) {
|
||||
throw new \Exception("@Relation annotation not found for field `{$relation->foreignField}` in entity {$relation->bridge}");
|
||||
}
|
||||
|
||||
$repository = $relationRelation->entity()->repository();
|
||||
|
||||
$bridgeAlias = uniqid("bridge_");
|
||||
|
||||
Reference in new issue
Block a user