File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -476,10 +476,10 @@ private static function initSchema(Connection $connection): void
476
476
// - `inheritance_agency` have an FK to `inheritance_society.**id_entity**`
477
477
// - `inheritance_society` have an FK to `inheritance_entity.**id**`
478
478
$ db ->table ('inheritance_entity ' )
479
- ->column ('id ' )->integer ()->primaryKey ()->autoIncrement ();
479
+ ->column ('id ' )->integer ()->primaryKey ()->autoIncrement ()
480
+ ->column ('name ' )->string ();
480
481
$ db ->table ('inheritance_society ' )
481
- ->column ('id_entity ' )->references ('inheritance_entity ' )->primaryKey ()
482
- ->then ();
482
+ ->column ('id_entity ' )->references ('inheritance_entity ' )->primaryKey ();
483
483
$ db ->table ('inheritance_agency ' )
484
484
->column ('id ' )->integer ()->primaryKey ()->autoIncrement ()
485
485
->column ('id_parent_society ' )->references ('inheritance_society ' );
Original file line number Diff line number Diff line change @@ -2217,7 +2217,7 @@ public function testInheritanceFkWithDifferentPkName(): void
2217
2217
{
2218
2218
$ inheritanceSocietyDao = new InheritanceSocietyDao ($ this ->tdbmService );
2219
2219
$ inheritanceAgencyDao = new InheritanceAgencyDao ($ this ->tdbmService );
2220
- $ society = new InheritanceSocietyBean ();
2220
+ $ society = new InheritanceSocietyBean (' test ' );
2221
2221
$ inheritanceSocietyDao ->save ($ society );
2222
2222
$ this ->assertNotNull ($ society ->getId ());
2223
2223
$ agency = new InheritanceAgencyBean ($ society );
You can’t perform that action at this time.
0 commit comments