mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
set order in HABTM in unit tests to make it stable in mysql 5.7
This commit is contained in:
parent
bdb8e9b6d5
commit
2290b612f8
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue