Posts Tagged ‘array’

Class ‘Array’ not found error when using sfCombineFilterPlugin in Symfony 1.0.x

Wednesday, March 4th, 2009 by The BCM Team

If you are getting a “Class ‘Array’ not found” error when using sfCombineFilterPlugin then a quick fix would be to make the “filters.yml” file look like the following:


rendering: ~
web_debug: ~
security:  ~
# generally, you will want to insert your own filters here
cache:     ~
common:    ~
sfCombineFilter:
  class:   sfCombineFilter
    #param:
    #condition:
flash:     ~
execution: ~

What I did was comment out the param: and condition: lines.

Convert Propel object to Array

Tuesday, May 13th, 2008 by The BCM Team

To convert a Propel object (a database row representation) to a normal array use the following:
$member->toArray(), where $member is a propel object.