We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5621827 commit 1f2a3a4Copy full SHA for 1f2a3a4
tests/TDBMDaoGeneratorTest.php
@@ -2140,4 +2140,13 @@ public function testOneToOneInverseRelationGetter(): void
2140
$this->assertSame($objectInherited, $objectBase->getInheritedObject());
2141
$this->assertEquals(1, $objectBase->jsonSerialize()['inheritedObject']['id']);
2142
}
2143
+
2144
+ public function testLazyStopRecursion(): void
2145
+ {
2146
+ $albumDao = new AlbumDao($this->tdbmService);
2147
+ $albumBean = $albumDao->getById(1);
2148
+ $json = $albumBean->jsonSerialize(true);
2149
+ $this->assertArrayHasKey('id', $json['artist']);
2150
+ $this->assertArrayNotHasKey('name', $json['artist']);
2151
+ }
2152
0 commit comments