Answer the question
In order to leave comments, you need to log in
Why is save() not working?
Actually here is the code
$trailers=Trailers::findOne(['id_film'=>$film->id]);
if(isset($trailers)) {
$trailers->description = $video;
$trailers->id_film = $film->id;
if($trailers->save()){}else{var_dump($trailers->getErrors());};
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question