Closed ElectricMaxxx closed 10 years ago
I think the problem has something to do with the overridden method getStaticPrefix()
in Phpcr\Route
.
You can skip the second issue. Wrote a test. In that the prefix has got a value, not that i extpected, but not Null.
So found my error. had a parameter chaos and changed routes path with content path. Sorry.
I am not that deep in that behavior but i think i have found a bug in generating the
generateStaticPrefix()
method called ingetPath()
on theRoute
document.Questions/Issues:
getPath()
thegenerateStaticPrefix()
is called. So if i haven't set theidPrefix
(Btw, why is the setter calledsetPrefix()
?) an exception occours:idPrefix
not persisted, when needed (described above)? Found no field mapping or something else. Tried to set it, to avoid the error above, but it stays.I think the
getPath()
method should return the nodes path (to prevend BC-breaks), that means without usingidPrefix
. I would suggest to create an other getter for the reduced path = url part.