/** * @param Newscoop\Entity\User $user * @param Newscoop\Entity\Topic $topic */ public function __construct(User $user, Topic $topic) { $this->user = $user; $this->topic = $topic; $this->topic_id = $topic->getTopicId(); $this->topic_language = $topic->getLanguageId(); }
public function getLanguageId() { $this->__load(); return parent::getLanguageId(); }