symfony 1.4/propel: problems trying to the previous element of a group of elements retrieved using a criteria
i have retrieved a group of elements using a propel criteria. Now are at $S开发者_如何学Goedi18ns
When i use this:
$SediI18ns->prev()
I get:
( ! ) Fatal error: Call to undefined method sfOutputEscaperArrayDecorator::prev()
No problems when i use next()
.
Any idea?
Regards
Javi
sfOutputEscaperArrayDecorator
has a next()
method, as defined by the Iterator
interface, but no prev()
method. You can access them as arrays, and use numeric indexes, or just save the previous object in a variable and use that.
精彩评论