andWhere('author_id=1'); } public function getSource() { return $this->hasOne('db', ArticleDb::className(), ['id' => 'id']); } public function getSnippetSource() { return $this->source->content; } }