public function getVideos()
{
return $this->owner->hasMany($this->className, [$this->attribute => 'id']);
}
public function getVideos()
{
return $this->owner->hasMany($this->className, [$this->attribute => 'id'])->where([/* тут Ваше условие */]);
}