Field_Reference::destroy PHP Method

destroy() public method

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