Skip to content

Commit e97e2ea

Browse files
noescomnoescom
authored andcommitted
Fixed Canvas Framework Error
Quellabs\ObjectQuel\EntityStore::isIdentityColumn(): Argument #1 ($propertyAnnotations) must be of type array, Quellabs\AnnotationReader\Collection\AnnotationCollection given, called in F:\Work\blog-demo\vendor\quellabs\objectquel\src\EntityStore.php on line 587
1 parent 176cb8f commit e97e2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EntityStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ public function findAutoIncrementPrimaryKey(mixed $entity): ?string {
584584
foreach ($annotations as $fieldName => $annotationSet) {
585585
// Use the isIdentityColumn method to determine if this field
586586
// is a primary key with identity strategy or no strategy
587-
if ($this->isIdentityColumn($annotationSet)) {
587+
if ($this->isIdentityColumn($annotationSet->toArray())) {
588588
// Found an auto-increment primary key - cache and return immediately
589589
return $this->auto_increment_column_cache[$owningTable] = $fieldName;
590590
}

0 commit comments

Comments
 (0)