Set value boolean in symfony and update -
i trying set value of boolean during update. return error.
here entity.
/** * set status * * @param boolean $status * @return congressstaffer */ public function setmailstatus($status) { $this->status = $status; return $this; } /** * status * * @return boolean */ public function getmailstatus() { return $this->status; }
$staffer->setmailstatus();
$em->flush();
what kind of error did get?
also, need pass value setter,
$staffer->setmailstatus(true); // or false
or, define default value in setter,
public function setmailstatus($status = false) // or true { // ... }
Comments
Post a Comment