- WIP on insert/update statement

This commit is contained in:
Dave Mc Nicoll committed 2020-02-05 16:19:57 -05:00
1 parent bad5123447
commit 828daffec8
13 files changed
+311 -36

No files matched your search

+20 -2
View File
@@ -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;
}
/**