Thanks for your answer.

Unfortunatelly I'm using Propel and can't change it into Doctrine.

Rafał

On Tue, Aug 3, 2010 at 12:38 AM, Stéphane <[email protected]> wrote:

> AFAIK Doctrine manages the Inet type when using pgSql.
> http://www.symfony-project.org/doctrine/1_2/en/04-Schema-Files
> Search for INET
>
> I don't know if there is any inet type validator on the symfony-doctrine,
> but that's not that difficult to code as a validator, then modify generator
> form to add the validator as needed.
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
>
> 2010/8/3 Michał Piotrowski <[email protected]>
>
> 2010/8/3 Rafał <[email protected]>:
>> > On Aug 3, 12:14 am, Michał Piotrowski <[email protected]> wrote:
>> >> Hi,
>> >>
>> >> 2010/8/3 Rafał <[email protected]>:
>> >>
>> >>
>> >>
>> >> > Hi,
>> >> > I want to ask for help. I want to add new data type to my schema.yml.
>> >> > I have a field name IP (IP Address) in my application. My Postgresql
>> >> > database has 'inet' data type but I can't use it in my symfony.
>> >>
>> >> > Could you help me and show some links how to do it?
>> >>
>> >> How about string(40) (or better string(64) because it is more round
>> number)?
>> >>
>> >> It's IPv6 compliant ;)
>> >>
>> >
>> > Thanx for very fast answer... but it's not good solution for me. I
>> > need 'inet' type in my postgres database.
>> >
>> > Is it very difficult to change some symfony core files in order to do
>> > it?
>>
>> Rather, you will need to start in your ORM code - Propel or Doctrine.
>> I do not know if it is difficult. You have to ask on the
>> doctrine-devel or propel-devel lists. In symfony part you may want to
>> create a form field validator. Probably something else will need to be
>> done.
>>
>> Regards,
>> Michal
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.com
>>
>> 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]<symfony-users%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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