You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 17, 2025. It is now read-only.
if (0 < \count($property->getAttributes(\Webfactory\VisibilityFilterBundle\Attribute\VisibilityColumn::class))) {
45
-
$visibilityProperty = $property;
46
-
}
47
-
}
48
-
49
-
if (null !== $this->annotationReader->getPropertyAnnotation($property, VisibilityColumn::class)) {
50
-
trigger_deprecation(
51
-
'webfactory/visibility-filter-bundle',
52
-
'1.5.0',
53
-
'Configuring webfactory/visibility-filter-bundle with annotations is deprecated, use attributes instead.'
54
-
);
55
-
32
+
if (0 < \count($property->getAttributes(VisibilityColumn::class))) {
56
33
if (null !== $visibilityProperty) {
57
34
thrownewRuntimeException('More than 1 visibility column configured for '.$classMetadata->getName().'. You must only configure 1 visibility column per entity.');
Copy file name to clipboardExpand all lines: tests/Fixtures/EntityWithOneToOneRelationship.php
+7-16Lines changed: 7 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,16 @@
4
4
5
5
useDoctrine\ORM\MappingasORM;
6
6
7
-
/**
8
-
* @ORM\Entity()
9
-
*/
7
+
#[ORM\Entity]
10
8
class EntityWithOneToOneRelationship
11
9
{
12
-
/**
13
-
* @ORM\OneToOne(targetEntity="EntityWithProperVisibilityColumn", fetch="EAGER") fetch="EAGER" prevents a proxy object being put in here, so this will be null when the related entity is not found
14
-
*
15
-
* @var EntityWithProperVisibilityColumn
16
-
*/
17
-
public$relationship;
10
+
// fetch="EAGER" prevents a proxy object being put in here, so this will be null when the related entity is not found
0 commit comments