Browse Source

Merge pull request #6697 from cakephp/fix-rules-type

Fix backwards compatibility for typehints.
José Lorenzo Rodríguez 11 years ago
parent
commit
b853eb3ca0
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/ORM/Table.php

+ 11 - 0
src/ORM/Table.php

@@ -2107,6 +2107,17 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
     }
 
     /**
+     * {@inheritDoc}
+     *
+     * @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
+     * @return \Cake\ORM\RulesChecker
+     */
+    public function buildRules(RulesChecker $rules)
+    {
+        return $rules;
+    }
+
+    /**
      * Returns an array that can be used to describe the internal state of this
      * object.
      *