[Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) |
[eluser]OverZealous[/eluser]
[quote author="PoetaWD" date="1251875679"]is that correct ? I havent tryed,,,[/quote] :lol: Everyone is always so afraid. Yes that is correct. Trying never really hurts anything, though! I always say, make a backup and just push the button. That's how I learn. (Of course, it's usually followed by OH *^&#@! Good thing I don't work for the military! :-P ) You can also get the data in one pass (with $has_one relationships), if you want to save a query. That looks something like this: Code: $p = new Profile(); You can include any object that has a single relationship, and as many of them as you want. It even works for entire result sets. In the example above, there is only one query processed on the server. |
Welcome Guest, Not a member yet? Register Sign In |