AD7six 11 years ago
parent
commit
6b02321531
2 changed files with 4 additions and 1 deletions
  1. 2 0
      src/ORM/TableRegistry.php
  2. 2 1
      tests/TestCase/ORM/AssociationTest.php

+ 2 - 0
src/ORM/TableRegistry.php

@@ -254,4 +254,6 @@ class TableRegistry
             static::$_fallbacked[$alias]
         );
     }
+
+    public static function keys() { return array_keys(static::$_instances); }
 }

+ 2 - 1
tests/TestCase/ORM/AssociationTest.php

@@ -187,7 +187,8 @@ class AssociationTest extends TestCase
             'sourceTable' => $this->source,
             'joinType' => 'INNER'
         ];
-        $this->association = $this->getMock('\Cake\ORM\Association',
+        $this->association = $this->getMock(
+            '\Cake\ORM\Association',
             [
                 '_options', 'attachTo', '_joinCondition', 'cascadeDelete', 'isOwningSide',
                 'saveAssociated', 'eagerLoader', 'type'