ソースを参照

Fix mistakes.

Refs #7901
Mark Story 10 年 前
コミット
e174e9a248
1 ファイル変更4 行追加3 行削除
  1. 4 3
      src/ORM/Rule/ExistsIn.php

+ 4 - 3
src/ORM/Rule/ExistsIn.php

@@ -69,7 +69,8 @@ class ExistsIn
 
 
             if (empty($this->_repository)) {
             if (empty($this->_repository)) {
                 throw new RuntimeException(sprintf(
                 throw new RuntimeException(sprintf(
-                    "ExistsIn rule for 'author_id' is invalid. The '%s' association is not defined.",
+                    "ExistsIn rule for '%s' is invalid. The '%s' association is not defined.",
+                    implode(', ', $this->_fields),
                     $alias
                     $alias
                 ));
                 ));
             }
             }
@@ -113,10 +114,10 @@ class ExistsIn
     }
     }
 
 
     /**
     /**
-     * Check whether or not the entity fields are null and nullable.
+     * Check whether or not the entity fields nullable and null.
      *
      *
      * @param \Cake\ORM\EntityInterface $entity The entity to check.
      * @param \Cake\ORM\EntityInterface $entity The entity to check.
-     * @param \Cake\ORM\Table $table The table to use schema from.
+     * @param \Cake\ORM\Table $source The table to use schema from.
      * @return bool
      * @return bool
      */
      */
     protected function _fieldsAreNull($entity, $source)
     protected function _fieldsAreNull($entity, $source)