[eluser]OverZealous[/eluser]
[quote author="tolyx" date="1245953813"]
Only the last, single, record is output. Any ideas where I'm going wrong?[/quote]
You always have to include the id column when using DataMapper. The id column is used to store the result set in the ->all array. What's most likely happening is your results are getting stored on top of each other.
This leads to a secret trick in DataMapper: You can actually get a specific item from a result by doing this:
Code:
// run your normal query
$object->get();
// get the item with the id of 4
$object4 = $object->all[4]; // not the 4th item, but $id=4
I don't know how useful it is, or even if this will stay this way forever, but it's an interesting side effect.