/** * method to check if this object has a draftId set in properties * and check if there exists other objects that point to this draftId * * @return void */ protected function checkDraftChilds() { if (empty($this->data['draftId'])) { return; } DM\Tree::assignChildDrafts($this->data['draftId'], $this->id); }