Skip to content

Commit c067cc0

Browse files
committed
Move namespace
1 parent 6c06b69 commit c067cc0

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

doctrine/event_listeners_subscribers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ a ``postPersist()`` method, which will be called when the event is dispatched::
105105

106106
use AppBundle\Entity\Product;
107107
// for Doctrine < 2.4: use Doctrine\ORM\Event\LifecycleEventArgs;
108-
use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
108+
use Doctrine\Persistence\Event\LifecycleEventArgs;
109109

110110
class SearchIndexer
111111
{
@@ -151,7 +151,7 @@ interface and have an event method for each event it subscribes to::
151151
use AppBundle\Entity\Product;
152152
use Doctrine\Common\EventSubscriber;
153153
// for Doctrine < 2.4: use Doctrine\ORM\Event\LifecycleEventArgs;
154-
use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
154+
use Doctrine\Persistence\Event\LifecycleEventArgs;
155155
use Doctrine\ORM\Events;
156156

157157
class SearchIndexerSubscriber implements EventSubscriber

doctrine/mapping_model_classes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Annotations, XML, Yaml, PHP and StaticPHP. The arguments are:
116116
instead of the ``SymfonyFileLocator``::
117117

118118
use AppBundle\Model;
119-
use Doctrine\Common\Persistence\Mapping\Driver\DefaultFileLocator;
119+
use Doctrine\Persistence\Mapping\Driver\DefaultFileLocator;
120120
use Doctrine\ORM\Mapping\Driver\XmlDriver;
121121

122122
// ...

form/data_transformers.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ First, create the custom field type class::
342342
namespace AppBundle\Form;
343343

344344
use AppBundle\Form\DataTransformer\IssueToNumberTransformer;
345-
use Doctrine\Common\Persistence\ObjectManager;
346345
use Symfony\Component\Form\AbstractType;
347346
use Symfony\Component\Form\Extension\Core\Type\TextType;
348347
use Symfony\Component\Form\FormBuilderInterface;

form/unit_testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ make sure the ``FormRegistry`` uses the created instance::
135135
namespace Tests\AppBundle\Form\Type;
136136

137137
use AppBundle\Form\Type\TestedType;
138-
use Doctrine\Common\Persistence\ObjectManager;
138+
use Doctrine\Persistence\ObjectManager;
139139
use Symfony\Component\Form\PreloadedExtension;
140140
use Symfony\Component\Form\Test\TypeTestCase;
141141
// ...

reference/forms/types/entity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ or the short alias name (as shown prior).
193193
``em``
194194
~~~~~~
195195

196-
**type**: ``string`` | ``Doctrine\Common\Persistence\ObjectManager`` **default**: the default entity manager
196+
**type**: ``string`` | ``Doctrine\Persistence\ObjectManager`` **default**: the default entity manager
197197

198198
If specified, this entity manager will be used to load the choices
199199
instead of the ``default`` entity manager.

service_container/parent_services.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ you may have multiple repository classes which need the
1212
// src/AppBundle/Repository/BaseDoctrineRepository.php
1313
namespace AppBundle\Repository;
1414

15-
use Doctrine\Common\Persistence\ObjectManager;
15+
use Doctrine\Persistence\ObjectManager;
1616
use Psr\Log\LoggerInterface;
1717

1818
// ...

testing/database.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Suppose the class you want to test looks like this::
4545
namespace AppBundle\Salary;
4646

4747
use AppBundle\Entity\Employee;
48-
use Doctrine\Common\Persistence\ObjectManager;
48+
use Doctrine\Persistence\ObjectManager;
4949

5050
class SalaryCalculator
5151
{
@@ -74,8 +74,8 @@ it's easy to pass a mock object within a test::
7474

7575
use AppBundle\Entity\Employee;
7676
use AppBundle\Salary\SalaryCalculator;
77-
use Doctrine\Common\Persistence\ObjectManager;
78-
use Doctrine\Common\Persistence\ObjectRepository;
77+
use Doctrine\Persistence\ObjectManager;
78+
use Doctrine\Persistence\ObjectRepository;
7979
use PHPUnit\Framework\TestCase;
8080

8181
class SalaryCalculatorTest extends TestCase

0 commit comments

Comments
 (0)