@beberlei lukas said that you probably have an opinion on this... do you think it is correct to report this instead of just "detached document"? it was very confusing for me until i figured out that i actually try to add 2 documents with the same id.
improve error message when adding a document to an existing path
if we change this then it should likely also be changed in all other ORM/ODMs
travis fail is because of a midgard setup issue, jackrabbit passes
Identifiers could also be objects, should consider that or it will fail in trying to call __toString
ups, thanks for the warning. though i am not sure if this really is the case for phpcr-odm. maybe this is only relevant in the ORM?
do you agree with the general intention of this change?
@dbu better exceptions (even if heavy) is always good IMO, that's self-documenting "facedesk" for the user :)
handle id object case
ok, i handle the caes of an object with no __toString now. should we merge or is there anything else?