mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Fixed XmlArticle and XmlUser Models associations. Fixes failing testWithModel
test and does no longer try to use the 'default' datasource.
This commit is contained in:
parent
7fd19551db
commit
81fedbba9c
1 changed files with 7 additions and 3 deletions
|
@ -39,8 +39,8 @@ class XmlArticle extends CakeTestModel {
|
|||
* @var array
|
||||
*/
|
||||
public $belongsTo = array(
|
||||
'XmlUser' => array(
|
||||
'className' => 'XmlArticle',
|
||||
'User' => array(
|
||||
'className' => 'XmlUser',
|
||||
'foreignKey' => 'user_id'
|
||||
)
|
||||
);
|
||||
|
@ -65,7 +65,11 @@ class XmlUser extends CakeTestModel {
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
public $hasMany = array('Article');
|
||||
public $hasMany = array(
|
||||
'Article' => array(
|
||||
'className' => 'XmlArticle'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue