- Added partial support for Index as primary keys

This commit is contained in:
Dave Mc Nicoll committed 2025-03-11 19:36:00 +00:00
1 parent e0ec140661
commit bfddf84564
4 files changed
+24 -9

No files matched your search

+3 -2
View File
@@ -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