common\models\Building::getSchool PHP 메소드

getSchool() 공개 메소드

public getSchool ( ) : ActiveQuery
리턴 yii\db\ActiveQuery
    public function getSchool()
    {
        return $this->hasOne(School::className(), ['id' => 'school_id']);
    }