1
0
mirror of synced 2025-02-09 00:39:25 +03:00

#1169 DDC-3343 - aligning test suite logic to the 2.5 branch (failing tests)

This commit is contained in:
Marco Pivetta 2015-01-29 18:39:30 +00:00
parent cbe5575f38
commit fac410b213
2 changed files with 9 additions and 5 deletions

View File

@ -18,17 +18,20 @@ class Tweet
public $id; public $id;
/** /**
* @Column(type="string") * @Column(type="string", length=140)
*/ */
public $content; public $content = '';
/** /**
* @ManyToOne(targetEntity="User", inversedBy="tweets") * @ManyToOne(targetEntity="User", inversedBy="tweets", cascade={"persist"}, fetch="EXTRA_LAZY")
*/ */
public $author; public $author;
public function setAuthor(User $user) /**
* @param User $author
*/
public function setAuthor(User $author)
{ {
$this->author = $user; $this->user = $author;
} }
} }

View File

@ -28,6 +28,7 @@ class ExtraLazyCollectionTest extends \Doctrine\Tests\OrmFunctionalTestCase
{ {
$this->useModelSet('tweet'); $this->useModelSet('tweet');
$this->useModelSet('cms'); $this->useModelSet('cms');
$this->useModelSet('tweet');
parent::setUp(); parent::setUp();
$class = $this->_em->getClassMetadata('Doctrine\Tests\Models\CMS\CmsUser'); $class = $this->_em->getClassMetadata('Doctrine\Tests\Models\CMS\CmsUser');