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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -