1 | <?php |
||
31 | abstract class AbstractCollectionPersister implements CollectionPersister |
||
32 | { |
||
33 | /** |
||
34 | * @var EntityManagerInterface |
||
35 | */ |
||
36 | protected $em; |
||
37 | |||
38 | /** |
||
39 | * @var \Doctrine\DBAL\Connection |
||
40 | */ |
||
41 | protected $conn; |
||
42 | |||
43 | /** |
||
44 | * @var UnitOfWork |
||
45 | */ |
||
46 | protected $uow; |
||
47 | |||
48 | /** |
||
49 | * The database platform. |
||
50 | * |
||
51 | * @var \Doctrine\DBAL\Platforms\AbstractPlatform |
||
52 | */ |
||
53 | protected $platform; |
||
54 | |||
55 | /** |
||
56 | * The quote strategy. |
||
57 | * |
||
58 | * @var \Doctrine\ORM\Mapping\QuoteStrategy |
||
59 | */ |
||
60 | protected $quoteStrategy; |
||
61 | |||
62 | /** |
||
63 | * Initializes a new instance of a class derived from AbstractCollectionPersister. |
||
64 | * |
||
65 | * @param EntityManagerInterface $em |
||
66 | */ |
||
67 | 67 | public function __construct(EntityManagerInterface $em) |
|
75 | |||
76 | /** |
||
77 | * Check if entity is in a valid state for operations. |
||
78 | * |
||
79 | * @param object $entity |
||
80 | * |
||
81 | * @return bool |
||
82 | */ |
||
83 | protected function isValidEntityState($entity) |
||
95 | } |
||
96 |