1
0
mirror of synced 2025-02-20 22:23:14 +03:00

#1169 DDC-3343 - refactoring test to use pre-existing test models

This commit is contained in:
Marco Pivetta 2015-01-24 11:54:03 +01:00
parent aed01ea571
commit 15397bbe40
3 changed files with 6 additions and 0 deletions

View File

@ -168,6 +168,8 @@ class OneToManyPersister extends AbstractCollectionPersister
// clearing owning side value
$targetMetadata->reflFields[$mapping['mappedBy']]->setValue($element, null);
$this->uow->computeChangeSet($targetMetadata, $element);
$persister->update($element);
return true;

View File

@ -8,6 +8,8 @@ namespace Doctrine\Tests\Models\Tweet;
*/
class Tweet
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue

View File

@ -10,6 +10,8 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class User
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue