The Dependent Behavior Documentation uses delete method, while this method just delete the document from the database and disregard callbacks, associations, etc.
The documentation example should use destroy method.
The Dependent Behavior Documentation uses delete method, while this method just delete the document from the database and disregard callbacks, associations, etc.
The documentation example should use destroy method.