Skip to content
Permalink
Browse files

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.
  • Loading branch information...
markstory committed Sep 8, 2014
1 parent e307ed3 commit ef5f78ec4ed2124e8ac80e6c99a948027a24fdaf
Showing with 3 additions and 1 deletion.
  1. +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',
]
]
);

0 comments on commit ef5f78e

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