[eluser]chadbob[/eluser]
[quote author="OverZealous" date="1261567139"]Make 100% sure you are doing this: count($p->all) and not this: count($p). I just tested it to be sure, and the latter always returns 1.
I've got helpers all over, and have never seen anything like this. It just doesn't make sense, since $p->all is a normal PHP array, and count is an internal PHP function.
Is the Datamapper library getting loaded correctly before it is used in your helper? Are you sure that $p is a valid object?
Again, I just tested it, using almost exactly the same code. Works perfectly for me.[/quote]
Yeah, I triple checked when I saw your first reply and panicked that I did something really dumb, haha.
I don't see why it wouldn't work either, that's why I'm kind of stumped...
I give up for now, I'll look over it all with fresh eyes tomorrow and I'm sure I'll see some obvious logic problem or something...