| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class ToOneAssociationLoadingStrategy implements AssociationLoadingStrategyInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var AssociationCollector |
||
| 14 | */ |
||
| 15 | protected $associationCollector; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var UninitializedProxiesLoader |
||
| 19 | */ |
||
| 20 | protected $uninitializedProxiesLoader; |
||
| 21 | |||
| 22 | public function __construct( |
||
| 28 | } |
||
| 29 | |||
| 30 | public function supports(AssociationMetadataAdapter $associationMetadataAdapter): bool |
||
| 31 | { |
||
| 32 | return |
||
| 33 | $associationMetadataAdapter->isManyToOne() |
||
| 34 | || ($associationMetadataAdapter->isOneToOne() && $associationMetadataAdapter->isOwningSide()) |
||
| 35 | ; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function load(ArrayCollection $sourceEntities, AssociationMetadataAdapter $associationMetadataAdapter): void |
||
| 48 | ); |
||
| 49 | } |
||
| 51 |