- Work done on many-to-many relations - code must still be refactored out of the EntityTrait.
- Fixed Entity::field("propertyname") function to look for name into @Field() annotation and returns it if it exists.
- A lot of bug fixes made into SQL fragments.
This commit is contained in:
1 parent
6e84fc7195
commit
c64c7778bd
20 files changed
+220
-105
No files matched your search
@@ -19,6 +19,8 @@ class Relation implements \Ulmus\Annotation\Annotation {
|
||||
public string $bridgeForeignKey;
|
||||
|
||||
public string $entity;
|
||||
|
||||
public string $function = "loadAll";
|
||||
|
||||
public function __construct(string $type = null)
|
||||
{
|
||||
@@ -32,4 +34,10 @@ class Relation implements \Ulmus\Annotation\Annotation {
|
||||
|
||||
return new $e();
|
||||
}
|
||||
|
||||
public function bridge() {
|
||||
$e = $this->bridge;
|
||||
|
||||
return new $e();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user