Practice::beforeDelete PHP 메소드

beforeDelete() 보호된 메소드

Delete commissioning body assignments for referential integrity Note if patients are assigned to the practice, there will still be a referential integrity error and the delete will fail.
protected beforeDelete ( ) : boolean
리턴 boolean
    protected function beforeDelete()
    {
        if (parent::beforeDelete()) {
            foreach ($this->commissioningbodyassigments as $cba) {
                $cba->delete();
            }
            return true;
        }
    }