I guess this is what you're looking for:
http://www.symfony-project.org/api/1_2/sfWidgetForm#method_setdefault

On Thu, May 7, 2009 at 16:07, HAUSa
<[email protected]> wrote:
>
> I got a Propel form, to which I added two files manually.
> When I edit a Propel object, all database fields have a default value
> from the database.
>
> But now I want my two manual created fields to have default values to.
>
> I have a field named "zipcode" in the database. My two manually
> created fields are named "zipcode_1" and "zipcode_2". The values can
> be generated from the "zipcode" database field: the first 4 characters
> are "zipcode_1" and the last 2 characters are "zipcode_2".
>
> How can I make Symfony get those default values?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to