public function findByBudgetId($budgetId, \DateTimeImmutable $date)
    {
        $this->addWhere('budget_id', $budgetId);
        $this->addWhere('budget_month_date', $date->format('Y-m-d'));

        $result = $this->selectOne();

        return $result;
    }
public function findByBudgetId($budgetId, \DateTimeImmutable $date)
    {
        $this->addWhere('budget_id', $budgetId);
        $this->addWhere('budget_month_date', $date->format('Y-m-d'));

        $result = $this->selectOne();

        return $result;
    }
public function findByBudgetId ( $ budgetId , \ DateTimeImmutable $ date ) { $ this -> addWhere ( 'budget_id' , $ budgetId ) ; $ this -> addWhere ( 'budget_month_date' , $ date -> format ( 'Y-m-d' ) ) ; $ result = $ this -> selectOne ( ) ; return $ result ; }
Get budget month by budget id & month

@param  int $budgetId
@param  \DateTimeImmutable $date
@return BudgetMonth
Get budget month by budget id & month