If you do want to retrieve integer value, overload the getValue() method to
cast the value.

Don't think you should mind it.

Alexandre

2009/12/16 Salim <salim.semao...@gmail.com>

> I also tried to inspect these values in a controller action, and I got
> strings anyway
>
> On 16 déc, 16:15, Alexandre Salomé <alexandre.sal...@gmail.com> wrote:
> > Can be because you retrieve values through an escaper ? are you getting
> > these  values in template ?
> >
> > 2009/12/16 Salim <salim.semao...@gmail.com>
> >
> >
> >
> >
> >
> > > I also have floats and integers on my schema, but i get string values
> > > for those columns.
> > > I can't figure out why.
> >
> > > On 11 déc, 23:53, Alexandre Salomé <alexandre.sal...@gmail.com> wrote:
> > > > Well, if I understand the problem :
> >
> > > >    - You always get string values for columns
> > > >    - You define a schema with only string values
> >
> > > > Are you... sure of your problem ?
> >
> > > > 2009/12/11 Salim <salim.semao...@gmail.com>
> >
> > > > > No answers ?
> >
> > > > > On 10 déc, 10:02, Salim <salim.semao...@gmail.com> wrote:
> > > > > > Here is an sample of the schema :
> >
> > > > > > Place:
> > > > > >   actAs:
> > > > > >     I18n:
> > > > > >       fields:
> > > > > >        -  name
> > > > > >        -  number
> > > > > >        -  address
> > > > > >        -  postal_box
> > > > > >        -  cedex
> > > > > >        -  city
> > > > > >        -  zip_code
> > > > > >        -  country
> > > > > >        -  tel
> > > > > >        -  fax
> > > > > >        -  email
> > > > > >        -  website
> > > > > >        -  presentation
> > > > > >        -  image
> > > > > >   connection:                   via_france
> > > > > >   columns:
> > > > > >     lon:                        float
> > > > > >     lat:                        float
> > > > > >     name:                       string(255)
> > > > > >     number:                     string(255)
> > > > > >     address:                    string(255)
> > > > > >     postal_box:                 string(255)
> > > > > >     cedex:                      string(255)
> > > > > >     city:                       string(255)
> > > > > >     zip_code:                   string(255)
> > > > > >     insee:                      string(10)
> > > > > >     country_id:                 string(2)
> > > > > >     country:                    string(255)
> > > > > >     tel:                        string(255)
> > > > > >     fax:                        string(255)
> > > > > >     email:                      string(255)
> > > > > >     website:                    string(255)
> > > > > >     presentation:               string(4000)
> > > > > >     image:                      string(255)
> > > > > >     stars:                      integer
> >
> > > > > > On 9 déc, 17:45, Serkan Koyuncu <serkan.koyu...@gmail.com>
> wrote:
> >
> > > > > > > Could you please post your schema?
> >
> > > > > > > Regards,
> > > > > > > S.
> >
> > > > > > > 2009/12/9 Salim <salim.semao...@gmail.com>:
> >
> > > > > > > > PS : I am using Symfony 1.2 with Doctrine 1.1
> >
> > > > > > > > On 9 déc, 17:03, Salim <salim.semao...@gmail.com> wrote:
> > > > > > > >> Hi all,
> >
> > > > > > > >> After inspecting several doctrine records on my project, I
> > > realized
> > > > > > > >> that every field of these records was casted into strings
> > > whatever
> > > > > the
> > > > > > > >> type declared for the column in the schema.yml file.
> >
> > > > > > > >> Is it a known issue, or am I missing something ?
> >
> > > > > > > >> Thank's in advance for your help
> >
> > > > > > > > --
> >
> > > > > > > > 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<symfony-users%2bunsubscr...@googlegroups.com>
> <symfony-users%2bunsubscr...@goog legroups.com>
> > > <symfony-users%2bunsubscr...@goog legroups.com>
> > > > > .
> > > > > > > > For more options, visit this group athttp://
> > > > > groups.google.com/group/symfony-users?hl=en.
> >
> > > > > --
> >
> > > > > 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<symfony-users%2bunsubscr...@googlegroups.com>
> <symfony-users%2bunsubscr...@goog legroups.com>
> > > <symfony-users%2bunsubscr...@goog legroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/symfony-users?hl=en.
> >
> > > > --
> > > > Alexandre Saloméhttp://alexandre-salome.fr
> >
> > > --
> >
> > > 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<symfony-users%2bunsubscr...@googlegroups.com>
> <symfony-users%2bunsubscr...@goog legroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en.
> >
> > --
> > Alexandre Saloméhttp://alexandre-salome.fr
>
> --
>
> 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<symfony-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>


-- 
Alexandre Salomé
http://alexandre-salome.fr

--

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.


Reply via email to