class OrdersRepository(){
public function fff()
{
$positions = $this->positionsOrdersRepository->getPositions($date, $step);
foreach ($positions as $position) {
if (...){
$position->setTitle(3);
$this->positionsOrdersRepository->setSave();
$position->getOrder()->setTitl("0");
$this->setSave();
}
}
}
}