File tree 2 files changed +3
-1
lines changed
Bridge/Doctrine/Tests/Fixtures
Component/Validator/Tests/Constraints 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 14
14
use Doctrine \ORM \Mapping \Column ;
15
15
use Doctrine \ORM \Mapping \Entity ;
16
16
use Doctrine \ORM \Mapping \Id ;
17
+ use Doctrine \ORM \Mapping \JoinColumn ;
17
18
use Doctrine \ORM \Mapping \OneToOne ;
18
19
19
20
#[Entity]
20
21
class SingleAssociationToIntIdEntity
21
22
{
22
23
public function __construct (
23
24
#[Id, OneToOne(cascade: ['ALL ' ])]
25
+ #[JoinColumn(nullable: false )]
24
26
protected SingleIntIdNoToStringEntity $ entity ,
25
27
26
28
#[Column(nullable: true )]
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function testAttributes()
75
75
76
76
[$ barConstraint ] = $ metadata ->properties ['bar ' ]->getConstraints ();
77
77
78
- self ::assertInstanceOf (When::class, $ fooConstraint );
78
+ self ::assertInstanceOf (When::class, $ barConstraint );
79
79
self ::assertSame ('false ' , $ barConstraint ->expression );
80
80
self ::assertEquals ([
81
81
new NotNull (groups: ['foo ' ]),
You can’t perform that action at this time.
0 commit comments