Skip to content

Commit

Permalink
doctrine#1169 DDC-3343 - aligning test suite logic to the 2.5 branch …
Browse files Browse the repository at this point in the history
…(failing tests)
  • Loading branch information
Ocramius committed Jan 29, 2015
1 parent 16e9513 commit f861d74
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions tests/Doctrine/Tests/Models/Tweet/Tweet.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

namespace Doctrine\Tests\Models\Tweet;

/**
* @Entity
* @Table(name="tweet_tweet")
*/
class Tweet
{
const CLASSNAME = __CLASS__;

/**
* @Id
* @GeneratedValue
* @Column(type="integer")
*/
public $id;

/**
* @Column(type="string", length=140)
*/
public $content = '';

/**
* @ManyToOne(targetEntity="User", inversedBy="tweets", cascade={"persist"}, fetch="EXTRA_LAZY")
*/
public $author;

/**
* @param User $author
*/
public function setAuthor(User $author)
{
$this->user = $author;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ExtraLazyCollectionTest extends \Doctrine\Tests\OrmFunctionalTestCase
public function setUp()
{
$this->useModelSet('cms');
$this->useModelSet('tweet');
parent::setUp();

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

0 comments on commit f861d74

Please sign in to comment.