[Deprecated] DMZ 1.5.3 (DataMapper OverZealous Edition) |
[eluser]mcnux[/eluser]
[quote author="leviathan28" date="1250189978"]First: I just love DMZ ^^ thanks for this great tool Now I've got a little problem concerning limiting results. This code Code: $state = new State(); results in that Code: SELECT `imports`.* There should be a "LIMIT 1" somewhere, shouldn't it? Or am I missing something?[/quote] I imagine Phil will come back with an explanation as to why the limit has not been added using your method but have you tried $state->import->limit(1)->get()? EDIT: The user guide also indicates that $state->import->get(1) should work. First parameter being the limit. See http://www.overzealous.com/dmz/pages/get.html. |
Welcome Guest, Not a member yet? Register Sign In |