- Fixed SQLite truncate, added AdapterProxy autoloading

This commit is contained in:
Dave Mc Nicoll committed 2025-05-12 15:11:00 +00:00
1 parent 1ec582d1ac
commit 761e0401b0
7 files changed
+105 -6

No files matched your search

+6 -1
View File
@@ -216,7 +216,12 @@ class Repository implements RepositoryInterface
}
else {
if ( $primaryKeyDefinition === null ) {
throw new \Exception(sprintf("No primary key found for entity %s", $this->entityClass));
if ( null !== $compoundKeyFields = Ulmus::resolveEntity($this->entityClass)->getCompoundKeyFields() ) {
throw new \Exception("TO DO!");
}
else {
throw new \Exception(sprintf("No primary key found for entity %s", $this->entityClass));
}
}
$diff = $fieldsAndValue ?? $this->generateWritableDataset($entity);