- Still WIP on removing annotations
This commit is contained in:
1 parent
62792e8325
commit
d9fa51fa18
5 files changed
+28
-16
No files matched your search
+3
-1
@@ -14,6 +14,9 @@ use Ulmus\{Common\EntityResolver,
|
||||
trait EntityTrait {
|
||||
use EventTrait;
|
||||
|
||||
#[Ignore]
|
||||
public string $loadedFromAdapter;
|
||||
|
||||
#[Ignore]
|
||||
protected bool $entityStrictFieldsDeclaration = false;
|
||||
|
||||
@@ -324,7 +327,6 @@ trait EntityTrait {
|
||||
#[Ignore]
|
||||
public static function field($name, null|string|false $alias = Repository::DEFAULT_ALIAS) : EntityField
|
||||
{
|
||||
|
||||
$default = ( $alias === false ? '' : Repository::DEFAULT_ALIAS ); # bw compatibility, to be deprecated
|
||||
|
||||
return new EntityField(static::class, $name, $alias ? Ulmus::repository(static::class)->adapter->adapter()->escapeIdentifier($alias, Adapter\AdapterInterface::IDENTIFIER_FIELD) : $default, Ulmus::resolveEntity(static::class));
|
||||
|
||||
Reference in new issue
Block a user