Hi,
im trying to give a default value to a field of a filter.
I have no problems giving a default value to a form this way:
$m = new Birthday();
$m->setName('Peter');
$this->filter = new BirthdayForm($m);
But when i try this:
$m = new Birthday();
$m->setName('Peter');
$this->filter = new BirthdayFormFilter($m);
this error appears:
Warning: array_merge() [function.array-merge
<http://rs.localhost/frontend_dev.php/function.array-merge>]: Argument
#2 is not an array in
/opt/lampp/htdocs/rs/lib/vendor/symfony/lib/form/sfForm.class.php on
line /1023/
Any idea?
Javi
--
You received this message because you are subscribed to the Google Groups "symfony
users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.