HollerLondon/sfImagePoolPlugin — pull request #9 by nixilla (2011-11-23 16:09:44+00:00)
Title: sfImagePoolable::setImages does not check the type of the $image object

Looks like in some cases the sfImagePoolable::setImages receives an array of images which are not instances of sfImagePoolImage.

This results passing this instances to Doctrine_Collection::compareRecords which expects Doctrine_Record and call getOid on them.

This ends up with Fatal error "calling getOid on non-object".

This patch fixes this problem and shouldn't break anything, as all it does is ignoring non-sfImagePoolImage types.

Please merge.

Regards
Janusz

P.S. The whitespace changes were made by vim - not me :-)