Remove AR item

I have a situtation where I either have to do a pretty complex sql query or split the solution in two parts letting php solve some of the filtering. I choose the later, I catch a bunch of AR items with findAll and a criteria but then I have to do some extra filtering with php, but I remember that you cannot just unset a item that you retrieve from findAll because of it’s nature. What is the way to remove a item from a findAll array result?


So it does work? Remembered that this does not release the memory allocated for the array item.


There were some fixes about memory leaks in 1.1.3 so it can be problem does not exist now.

I use the unset function now, thx.