mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merge pull request #666 from boast/patch-1
Fixed XmlArticle and XmlUser Models associations.
This commit is contained in:
commit
33eb46cd87
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…
Reference in a new issue