Skip to content

Commit 7afa37a

Browse files
committed
added a test for a conflict case
1 parent 992f64c commit 7afa37a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/TDBMAbstractServiceTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ private static function initSchema(Connection $connection): void
416416

417417
$db->table('artists')
418418
->column('id')->integer()->primaryKey()->autoIncrement()
419+
->column('children')->array()->null()
419420
->column('name')->string();
420421

421422
$db->table('albums')

tests/TDBMDaoGeneratorTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,4 +2160,12 @@ public function testLazyStopRecursionOnCompositeForeignKey(): void
21602160
$this->assertEquals(1, $json['compositeFkTarget']['id1']);
21612161
$this->assertEquals(1, $json['compositeFkTarget']['id2']);
21622162
}
2163+
2164+
public function testMethodNameConflictsBetweenRegularAndAutoPivotProperties()
2165+
{
2166+
$artist = new ArtistBean('Super');
2167+
$artist->getChildren();
2168+
$artist->getChildrenByArtistsRelations();
2169+
$this->assertEquals(1, 1);
2170+
}
21632171
}

0 commit comments

Comments
 (0)