You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following Test fails at the last assertCount, altough I think it should work as tested. But In the generated BaseObjects there is nowhere a backreference set. I tried doing so, but then ended up with endless loops.
/** * @group mine */publicfunctiontestManyToManyAddIsSettingAllReferences()
{
$list1 = newBookClubList();
$list2 = newBookClubList();
$book = newBook();
$book->addBookClubList($list1);
$book->addBookClubList($list2);
$lists = $book->getBookClubLists();
$this->assertCount(2, $lists, 'setRelCol is losing references to referenced object');
$rels = $book->getBookListRels();
$this->assertCount(2, $rels, 'setRelCol is losing references to relation object');
foreach ($relsas$rel) {
$this->assertNotNull($rel->getBook(), 'setRelCol is losing backreference on set relation to local object');
$this->assertNotNull($rel->getBookClubList(), 'setRelCol is losing backreference on set relation to referenced object');
}
foreach ($listsas$list) {
$this->assertCount(1, $list->getBooks(), 'setRelCol is losing backreference on set objects');
}
}
The text was updated successfully, but these errors were encountered:
The following Test fails at the last assertCount, altough I think it should work as tested. But In the generated BaseObjects there is nowhere a backreference set. I tried doing so, but then ended up with endless loops.
The text was updated successfully, but these errors were encountered: