Browse Source

Set update/delete modes on fixture.

In SQLServer the SET NULL mode is used by default, and this mode cannot
work with not null fields.
mark_story 11 years ago
parent
commit
ef5f78ec4e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/Fixture/ArticlesTagFixture.php

+ 3 - 1
tests/Fixture/ArticlesTagFixture.php

@@ -35,7 +35,9 @@ class ArticlesTagFixture extends TestFixture {
 			'tag_idx' => [
 				'type' => 'foreign',
 				'columns' => ['tag_id'],
-				'references' => ['tags', 'id']
+				'references' => ['tags', 'id'],
+				'update' => 'cascade',
+				'delete' => 'cascade',
 			]
 		]
 	);