I want to use another model inside find function like: $conditions = ["id" = $id] Model A::find([ 'conditions' => 'id=:id: AND Model B.created_at Between datefrom AND dateto', 'bind' => $conditions, ]);
Any one can help as soon as possible
I want to use another model inside find function like: $conditions = ["id" = $id] Model A::find([ 'conditions' => 'id=:id: AND Model B.created_at Between datefrom AND dateto', 'bind' => $conditions, ]);
Any one can help as soon as possible