- WIP on insert/update statement
This commit is contained in:
1 parent
bad5123447
commit
828daffec8
13 files changed
+311
-36
No files matched your search
@@ -149,9 +149,27 @@ class EntityResolver {
|
||||
return $table->schema ?? null;
|
||||
}
|
||||
|
||||
public function primaryKeys() : array
|
||||
public function getPrimaryKeyField() : ? array
|
||||
{
|
||||
foreach($this->fieldList() as $key => $value) {
|
||||
if ( null !== ( $field = $this->searchFieldAnnotation($key, new Field() ) ) ) {
|
||||
if (false !== $field->attributes['primary_key'] ?? false ) {
|
||||
return [ $key => $field ];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getCompoundKeyFields() : ? array
|
||||
{
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getUniqueFields() : ? array
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user