orm metadata fields => attributes

This commit is contained in:
Yuri Kuznetsov
2023-07-01 20:22:21 +03:00
parent f561bb57f4
commit d4ab9850f2
16 changed files with 691 additions and 685 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ class BaseEntity implements Entity
$this->entityType = $entityType;
$this->entityManager = $entityManager;
$this->attributes = $defs['attributes'] ?? $defs['fields'] ?? $this->attributes;
$this->attributes = $defs['attributes'] /*?? $defs['fields']*/ ?? $this->attributes;
$this->relations = $defs['relations'] ?? $this->relations;
if ($valueAccessorFactory) {