Skip to content

Commit

Permalink
set order in HABTM in unit tests to make it stable in mysql 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer committed Jul 10, 2017
1 parent bdb8e9b commit 2290b61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Cake/Test/Case/Model/models.php
Expand Up @@ -260,7 +260,13 @@ class Article extends CakeTestModel {
*
* @var array
*/
public $hasAndBelongsToMany = array('Tag');
public $hasAndBelongsToMany = array(
'Tag' => array(
'order' => array(
'Tag.id' => 'ASC',
),
),
);

/**
* validate property
Expand Down

0 comments on commit 2290b61

Please sign in to comment.