precioRepository->fetchByProyecto($proyecto_id); foreach ($precios as &$precio) { $precio->estados = $this->estadoPrecioRepository->fetchByPrecio($precio->id); $precio->current = $this->estadoPrecioRepository->fetchCurrentByPrecio($precio->id); } return $precios; } }