- Added partial support for Index as primary keys
This commit is contained in:
1 parent
e0ec140661
commit
bfddf84564
4 files changed
+24
-9
No files matched your search
@@ -5,6 +5,7 @@ namespace Ulmus\Common;
|
||||
use Notes\Common\ReflectedClass;
|
||||
use Notes\Common\ReflectedProperty;
|
||||
use Psr\SimpleCache\CacheInterface;
|
||||
use Ulmus\Attribute\Obj\Index;
|
||||
use Ulmus\Ulmus,
|
||||
Ulmus\Attribute\Obj\Table,
|
||||
Ulmus\Attribute\Obj\AdapterAttributeInterface,
|
||||
@@ -214,9 +215,9 @@ class EntityResolver {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getCompoundKeyFields() : ? array
|
||||
public function getCompoundKeyFields() : ? Index
|
||||
{
|
||||
return null;
|
||||
return $this->getAttributeImplementing(Index::class);
|
||||
}
|
||||
|
||||
public function getUniqueFields() : ? array
|
||||
|
||||
Reference in new issue
Block a user