Thx for your reply! But helas, I already tried that. I even used a
static String:
        public function getZipcode1(){
                return '4923';
        }

But the value won't show up as a default value on edit...

On 7 mei, 16:55, Alexandru-Emil Lupu <[email protected]> wrote:
> HI!
> I guess something like:
>
> function getZipcode1(){
> return substr($this->getZipcode(),0,4);}
>
> function getZipcode2(){
> return substr($this->getZipcode(),4,2);}
>
> Alecs
>
> On Thu, May 7, 2009 at 5:07 PM, 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?
>
> --
> I am on twitter:http://twitter.com/alecslupu
> I am on linkedIn:http://www.linkedin.com/in/alecslupu
> Tel: (+4)0748.543.798
--~--~---------~--~----~------------~-------~--~----~
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