- ArrayOf errors now catched in EntityTrait (event soon to be attached to it)
- Fixed some non-nullable defaulted to null vars in functions - Added a new diff method for entities which skips nullable values if they are not defined.
This commit is contained in:
1 parent
709ed63323
commit
13b7cf06f1
9 files changed
+52
-26
No files matched your search
+1
-1
@@ -108,7 +108,7 @@ abstract class Ulmus
|
||||
return static::$resolved[$entityClass] ?? static::$resolved[$entityClass] = new Common\EntityResolver($entityClass, static::$cache);
|
||||
}
|
||||
|
||||
public static function repository(string $entityClass, string $alias = Repository::DEFAULT_ALIAS, ConnectionAdapter $adapter = null) : Repository
|
||||
public static function repository(string $entityClass, string $alias = Repository::DEFAULT_ALIAS, ?ConnectionAdapter $adapter = null) : Repository
|
||||
{
|
||||
$adapter ??= $entityClass::resolveEntity()->sqlAdapter();
|
||||
$cls = $adapter->adapter()->repositoryClass();
|
||||
|
||||
Reference in new issue
Block a user