added possibility to use own object when reating from a form type