1
0
mirror of synced 2024-12-12 22:36:02 +03:00

[2.0] DDC-197 - Add failing test on oracle as a challenge to fix OCI CLOB handling.

This commit is contained in:
beberlei 2009-12-06 23:40:38 +00:00
parent 146e2319f1
commit 5af891d157
2 changed files with 25 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class CmsArticle
*/
public $topic;
/**
* @Column(type="string")
* @Column(type="text")
*/
public $text;
/**

View File

@ -509,6 +509,30 @@ class BasicFunctionalTest extends \Doctrine\Tests\OrmFunctionalTestCase
"select count(u.id) from Doctrine\Tests\Models\CMS\CmsUser u")
->getSingleScalarResult());
}
public function testTextColumnSaveAndRetrieve()
{
$user = new CmsUser;
$user->name = 'Guilherme';
$user->username = 'gblanco';
$user->status = 'developer';
$this->_em->persist($user);
$article = new \Doctrine\Tests\Models\CMS\CmsArticle();
$article->text = "Lorem ipsum dolor sunt.";
$article->topic = "A Test Article!";
$article->setAuthor($user);
$this->_em->persist($article);
$this->_em->flush();
$articleId = $article->id;
$this->_em->clear();
$article = $this->_em->find('Doctrine\Tests\Models\CMS\CmsArticle', $articleId);
$this->assertEquals("Lorem ipsum dolor sunt.", $article->text);
}
//DRAFT OF EXPECTED/DESIRED BEHAVIOR
/*public function testPersistentCollectionContainsDoesNeverInitialize()