public function beforeDelete()
 {
     if (parent::beforeDelete()) {
         $this->withRelated->clear(array('docs' => array()));
     }
     return false;
 }