250], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'parent_id' => 'Parent ID', 'date' => 'Date', 'title' => 'Title', 'body' => 'Body', 'folder' => 'Folder', 'sort' => 'Sort', 'active' => 'Active', ]; } public function getUrl(){ return "/photo/".$this->id; } public function getReport() { return $this->hasMany(ReportPhoto::className(), ['topic_id' => 'id'])->all(); } }