Ejemplo n.º 1
0
 public function getDocuments()
 {
     return $this->hasMany(Document::className(), ['category_id' => 'category_id']);
 }