[Deprecated] DMZ 1.6.2 (DataMapper OverZealous Edition) |
[eluser]OverZealous[/eluser]
@ciGR The error you are seeing is a subtle one. You cannot use reserved names, such as parent for relationships or fields. See the red box on that page. By naming a relationship parent, it sets a special variable that DMZ uses to track parent relationships internally, which is where the error is happening. You could rename the relationship (and database columns!) to parentcat or something similar. (The parent keyword is leftover from DataMapper. I have been thinking about changing it to something less common for DMZ 2.0, but that will probably break some existing code, so it will have to wait.) -------------------- You can easily include the parent's parent by doing this: Code: $cat = new Category_mdl(); |
Welcome Guest, Not a member yet? Register Sign In |