common\models\School::getStores PHP 메소드

getStores() 공개 메소드

public getStores ( ) : ActiveQuery
리턴 yii\db\ActiveQuery
    public function getStores()
    {
        return $this->hasMany(Store::className(), ['school_id' => 'id'])->where(['<>', 'status', Store::STATUS_DISABLED])->orderBy('name ASC');
    }