Could you please explain me about _type field that appears in my document?
When I save document using Shanty MongoDb, _type field is saved although I don’t save it myself.
$subscriber = new MyDocument($formData);
$subscriber->save();
MyDocument is inhereted from Shanty_Mongo_Document. Can I deleted field _type field without problems?
I use this one to prevent inserting the field:
protected function preInsert()
{
unset($this->_data['_type']);
}
What is this field for? Can I delete it easily?
Thank you.
I don’t know if there is a better way but I this in my document class to prevent storing _type field: