|
|
@@ -149,7 +149,7 @@ class ArrayContext implements ContextInterface
|
|
|
*/
|
|
|
public function isPrimaryKey(string $field): bool
|
|
|
{
|
|
|
- $primaryKey = $this->primaryKey();
|
|
|
+ $primaryKey = $this->getPrimaryKey();
|
|
|
|
|
|
return in_array($field, $primaryKey, true);
|
|
|
}
|
|
|
@@ -165,7 +165,7 @@ class ArrayContext implements ContextInterface
|
|
|
*/
|
|
|
public function isCreate(): bool
|
|
|
{
|
|
|
- $primary = $this->primaryKey();
|
|
|
+ $primary = $this->getPrimaryKey();
|
|
|
foreach ($primary as $column) {
|
|
|
if (!empty($this->_context['defaults'][$column])) {
|
|
|
return false;
|