/** * @return \yii\db\ActiveQuery */ public function getCompanyPhones() { return $this->hasMany(CompanyPhone::className(), ['company_id' => 'id']); }