Код: Выделить всё
public function testFoo(): void {
$obj = self::createObj();
$sub = self::createSubObj();
$obj->bar->add($sub);
$obj->save();
}
Код: Выделить всё
public function testFoo(): void {
$obj = self::createObj();
$sub = self::createSubObj($obj->bar->add($sub));
$obj->save();
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... nt-results
Мобильная версия