public function rules() {
return [];
}
public function rules() {
return array_merger($this->owner::rules,[]);
}
public function getRating()
{
$className = $this->className;
return $this->hasMany($className::className(), [$this->attribute => 'id']);
}