public function addTag($tag) { if ($tag) { $pt = new PostTag(); $pt->setTag($tag); $this->addPostTag($pt); return true; } return false; }
/** * Method called to associate a PostTag object to this object * through the PostTag foreign key attribute * * @param PostTag $l PostTag * @return void * @throws PropelException */ public function addPostTag(PostTag $l) { $this->collPostTags[] = $l; $l->setTag($this); }