Newscoop\Entity\Comment\Preference\Publication::setId PHP Method

setId() public method

Setting the the id
public setId ( Publication $p_id ) : unknown_type
$p_id Newscoop\Entity\Publication
return unknown_type
    public function setId(\Newscoop\Entity\Publication $p_id)
    {
        $this->id = $p_id;
        // return this for chaining mechanism
        return $this;
    }

Usage Example

 public function setId(\Newscoop\Entity\Publication $p_id)
 {
     $this->__load();
     return parent::setId($p_id);
 }