8000 #1169 DDC-3343 - aligning test suite logic to the 2.5 branch (failin… · symfonyaml/orm@fac410b · GitHub
[go: up one dir, main page]

Skip to content

Commit fac410b

Browse files
committed
doctrine#1169 DDC-3343 - aligning test suite logic to the 2.5 branch (failing tests)
1 parent cbe5575 commit fac410b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

tests/Doctrine/Tests/Models/Tweet/Tweet.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,20 @@ class Tweet
1818
public $id;
1919

2020
/**
21-
* @Column(type="string")
21+
* @Column(type="string", length=140)
2222
*/
23-
public $content;
23+
public $content = '';
2424

2525
/**
26-
* @ManyToOne(targetEntity="User", inversedBy="tweets")
26+
* @ManyToOne(targetEntity="User", inversedBy="tweets", cascade={"persist"}, fetch="EXTRA_LAZY")
2727
*/
2828
public $author;
2929

30-
public function setAuthor(User $user)
30+
/**
31+
* @param User $author
32+
*/
33+
public function setAuthor(User $author)
3134
{
32-
$this->author = $user;
35+
$this->user = $author;
3336
}
3437
}

tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function setUp()
2828
{
2929
$this->useModelSet('tweet');
3030
$this->useModelSet('cms');
31+
$this->useModelSet('tweet');
3132
parent::setUp();
3233

3334
$class = $this->_em->getClassMetadata('Doctrine\Tests\Models\CMS\CmsUser');

0 commit comments

Comments
 (0)
0