File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Bridge/Doctrine/Tests/Fixtures
Component/Validator/Tests/Constraints Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1414use Doctrine \ORM \Mapping \Column ;
1515use Doctrine \ORM \Mapping \Entity ;
1616use Doctrine \ORM \Mapping \Id ;
17+ use Doctrine \ORM \Mapping \JoinColumn ;
1718use Doctrine \ORM \Mapping \OneToOne ;
1819
1920#[Entity]
2021class SingleAssociationToIntIdEntity
2122{
2223 public function __construct (
2324 #[Id, OneToOne(cascade: ['ALL ' ])]
25+ #[JoinColumn(nullable: false )]
2426 protected SingleIntIdNoToStringEntity $ entity ,
2527
2628 #[Column(nullable: true )]
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public function testAttributes()
7373
7474 [$ barConstraint ] = $ metadata ->properties ['bar ' ]->getConstraints ();
7575
76- self ::assertInstanceOf (When::class, $ fooConstraint );
76+ self ::assertInstanceOf (When::class, $ barConstraint );
7777 self ::assertSame ('false ' , $ barConstraint ->expression );
7878 self ::assertEquals ([
7979 new NotNull ([
You can’t perform that action at this time.
0 commit comments