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:
David Thalmann 2012-05-23 07:19:06 +03:00
parent 7fd19551db
commit 81fedbba9c

View file

@ -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'
)
);
}
/**