#1169 DDC-3343 - aligning test suite logic to the 2.5 branch (failing tests)
This commit is contained in:
parent
cbe5575f38
commit
fac410b213
@ -18,17 +18,20 @@ class Tweet
|
||||
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 function setAuthor(User $user)
|
||||
/**
|
||||
* @param User $author
|
||||
*/
|
||||
public function setAuthor(User $author)
|
||||
{
|
||||
$this->author = $user;
|
||||
$this->user = $author;
|
||||
}
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ class ExtraLazyCollectionTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||
{
|
||||
$this->useModelSet('tweet');
|
||||
$this->useModelSet('cms');
|
||||
$this->useModelSet('tweet');
|
||||
parent::setUp();
|
||||
|
||||
$class = $this->_em->getClassMetadata('Doctrine\Tests\Models\CMS\CmsUser');
|
||||
|
Loading…
x
Reference in New Issue
Block a user