Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed XmlArticle and XmlUser Models associations. #666

Merged
merged 1 commit into from

3 participants

@boast

Fixes failing testWithModel test and does no longer try to use the 'default' datasource. Pull Request #666 and 2.2 in one day, congrats' cakephp :)

@boast boast Fixed XmlArticle and XmlUser Models associations. Fixes failing `test…
…WithModel` test and does no longer try to use the 'default' datasource.
81fedbb
@lorenzo
Owner

oh, boy... 666 again http://cl.ly/0Z3y1A3K1H3v241p1M3k :P

@lorenzo lorenzo merged commit 33eb46c into cakephp:2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 23, 2012
  1. @boast

    Fixed XmlArticle and XmlUser Models associations. Fixes failing `test…

    boast authored
    …WithModel` test and does no longer try to use the 'default' datasource.
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/Cake/Test/Case/Utility/XmlTest.php
View
10 lib/Cake/Test/Case/Utility/XmlTest.php
@@ -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'
+ )
+ );
}
/**
Something went wrong with that request. Please try again.