[eluser]leviathan28[/eluser]
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();
$state->get_by_id(State::STATE_NEW);
$state->import->limit(1);
$state->import->get();
results in that
Code:
SELECT `imports`.*
FROM (`imports`)
LEFT OUTER JOIN `imports_states` as imports_states ON `imports`.`id` = `imports_states`.`import_id`
LEFT OUTER JOIN `states` as states ON `states`.`id` = `imports_states`.`state_id`
WHERE `states`.`id` = '1'
There should be a "LIMIT 1" somewhere, shouldn't it?
Or am I missing something?