Пример #1
0
 protected function _delete()
 {
     $ndcts = $this->getNDCTs();
     foreach ($ndcts as $ndct) {
         $ndct->delete();
     }
     parent::_delete();
 }
Пример #2
0
 /**
  * Pre-delete hook. If overridden, should be called at end of function.
  *
  * @return void
  */
 protected function _delete()
 {
     $hinhAnhs = Khcn_Api::_()->getDbTable('hinh_anh_chuyen_de', 'default')->getHinhAnhByChuyenDe($this->getIdentity());
     foreach ($hinhAnhs as $hinh_anh) {
         $hinh_anh->delete();
     }
     parent::_delete();
 }
Пример #3
0
 /**
  * Pre-delete hook. If overridden, should be called at end of function.
  *
  * @return void
  */
 protected function _delete()
 {
     $tacGias = Khcn_Api::_()->getDbTable('tac_gia', 'default')->getTacGias($this->getIdentity());
     foreach ($tacGias as $tac_gia) {
         $tac_gia->delete();
     }
     parent::_delete();
 }