Browse Source

Changed remaining calls to ArrayContext::primaryKey() to getPrimaryKey()

Corey Taylor 6 years ago
parent
commit
cc1f2d524b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/View/Form/ArrayContext.php

+ 2 - 2
src/View/Form/ArrayContext.php

@@ -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;