Skip to content
Permalink
Browse files

Update unit test to reveal cascade callback bug for aliased associations

  • Loading branch information...
PGBI committed Apr 15, 2015
1 parent 3a3de18 commit 358cad6604fab88ff13b13958888fe6c59b85662
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/TestCase/ORM/TableTest.php
@@ -2411,7 +2411,9 @@ public function testDeleteDependent()
public function testDeleteDependentHasMany()
{
$table = TableRegistry::get('authors');
$table->hasMany('articles', [
$table->associations()->remove('articles');
$table->hasMany('aliased_articles', [
'className' => 'articles',
'foreignKey' => 'author_id',
'dependent' => true,
'cascadeCallbacks' => true,

0 comments on commit 358cad6

Please sign in to comment.
You can’t perform that action at this time.