Permalink
Browse files

[Form] Moved Doctrine2 specific files

  • Loading branch information...
webmozart committed Jan 28, 2011
1 parent 3bf9f77 commit d152b5e265541b3cde746d7ad0c59dd8d6255259
@@ -9,10 +9,8 @@
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Extension\Doctrine;
namespace Symfony\Component\Form;
use Symfony\Component\Form\ChoiceField;
use Symfony\Component\Form\PropertyPath;
use Symfony\Component\Form\ValueTransformer\TransformationFailedException;
use Symfony\Component\Form\Exception\FormException;
use Symfony\Component\Form\Exception\InvalidOptionsException;
@@ -9,11 +9,8 @@
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Extension\Doctrine;
namespace Symfony\Component\Form\FieldFactory;
use Symfony\Component\Form\FieldFactory\FieldFactoryGuesserInterface;
use Symfony\Component\Form\FieldFactory\FieldFactoryGuess;
use Symfony\Component\Form\FieldFactory\FieldFactoryClassGuess;
use Doctrine\ORM\EntityManager;
/**
@@ -9,10 +9,8 @@
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Extension\Doctrine;
namespace Symfony\Component\Form\ValueTransformer;
use Symfony\Component\Form\ValueTransformer\BaseValueTransformer;
use Symfony\Component\Form\ValueTransformer\TransformationFailedException;
use Doctrine\Common\Collections\Collection;
/**
@@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/
namespace Symfony\Tests\Component\Form\Extension\Doctrine;
namespace Symfony\Tests\Component\Form;
use Doctrine\ORM\EntityManager;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Bundle\DoctrineBundle\DependencyInjection\DoctrineExtension;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
class TestCase extends \PHPUnit_Framework_TestCase
class DoctrineOrmTestCase extends \PHPUnit_Framework_TestCase
{
protected function setUp()
{
@@ -9,24 +9,24 @@
* file that was distributed with this source code.
*/
namespace Symfony\Tests\Component\Form\Extension\Doctrine;
namespace Symfony\Tests\Component\Form;
require_once __DIR__.'/TestCase.php';
require_once __DIR__.'/DoctrineOrmTestCase.php';
require_once __DIR__.'/Fixtures/SingleIdentEntity.php';
require_once __DIR__.'/Fixtures/CompositeIdentEntity.php';
use Symfony\Component\Form\Extension\Doctrine\EntityChoiceField;
use Symfony\Component\Form\EntityChoiceField;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Tests\Component\Form\Extension\Doctrine\Fixtures\SingleIdentEntity;
use Symfony\Tests\Component\Form\Extension\Doctrine\Fixtures\CompositeIdentEntity;
use Symfony\Tests\Component\Form\Fixtures\SingleIdentEntity;
use Symfony\Tests\Component\Form\Fixtures\CompositeIdentEntity;
use Doctrine\ORM\Tools\SchemaTool;
use Doctrine\Common\Collections\ArrayCollection;
class EntityChoiceFieldTest extends TestCase
class EntityChoiceFieldTest extends DoctrineOrmTestCase
{
const SINGLE_IDENT_CLASS = 'Symfony\Tests\Component\Form\Extension\Doctrine\Fixtures\SingleIdentEntity';
const SINGLE_IDENT_CLASS = 'Symfony\Tests\Component\Form\Fixtures\SingleIdentEntity';
const COMPOSITE_IDENT_CLASS = 'Symfony\Tests\Component\Form\Extension\Doctrine\Fixtures\CompositeIdentEntity';
const COMPOSITE_IDENT_CLASS = 'Symfony\Tests\Component\Form\Fixtures\CompositeIdentEntity';
/**
* @var EntityManager
@@ -1,6 +1,6 @@
<?php
namespace Symfony\Tests\Component\Form\Extension\Doctrine\Fixtures;
namespace Symfony\Tests\Component\Form\Fixtures;
/** @Entity */
class CompositeIdentEntity
@@ -1,6 +1,6 @@
<?php
namespace Symfony\Tests\Component\Form\Extension\Doctrine\Fixtures;
namespace Symfony\Tests\Component\Form\Fixtures;
/** @Entity */
class SingleIdentEntity
@@ -9,15 +9,16 @@
* file that was distributed with this source code.
*/
namespace Symfony\Tests\Component\Form\Extension\Doctrine;
namespace Symfony\Tests\Component\Form\ValueTransformer;
require_once __DIR__.'/TestCase.php';
require_once __DIR__.'/../DoctrineOrmTestCase.php';
use Symfony\Component\Form\Extension\Doctrine\CollectionToStringTransformer;
use Symfony\Tests\Component\Form\DoctrineOrmTestCase;
use Symfony\Component\Form\ValueTransformer\CollectionToStringTransformer;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Tools\SchemaTool;
class CollectionToStringTransformerTest extends TestCase
class CollectionToStringTransformerTest extends DoctrineOrmTestCase
{
/**
* @var EntityManager

0 comments on commit d152b5e

Please sign in to comment.