Merge pull request #666 from boast/patch-1

Fixed XmlArticle and XmlUser Models associations.
This commit is contained in:
José Lorenzo Rodríguez 2012-05-22 21:41:04 -07:00
commit 33eb46cd87

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