public function destroy() { if ($e = $this->owner->hasElement($this->getDereferenced())) { $e->destroy(); } return parent::destroy(); }