[symfony-users] Re: Propel - force NOT NULL into generated SQL
Not null and required is pretty much the same thing. On Mon, Nov 16, 2009 at 20:09, Richtermeister wrote: > > Hey Gábor, > > hey, that works. Thanks. Is that the only way though, since required: > true also makes the validator in the generated form required? > Not a big deal if not, since I can just override that requirement.. > just curious. > > Thanks again, > Daniel > > > On Nov 16, 11:04 am, Gábor Fási wrote: >> required: true >> >> On Mon, Nov 16, 2009 at 19:55, Richtermeister wrote: >> >> > Hi all, >> >> > I have a model with a field "absolute_url", which is a varchar(255), >> > non-required. When generating the SQL for the tables, propel does not >> > add NOT NULL, but I would like it to. >> > Is there any way to affect this behavior? I've tried "notnull: true" >> > and "null: false", but that didn't work. >> >> > Thanks, >> > Daniel > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@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 -~--~~~~--~~--~--~---
[symfony-users] Re: Propel - force NOT NULL into generated SQL
Hey Gábor, hey, that works. Thanks. Is that the only way though, since required: true also makes the validator in the generated form required? Not a big deal if not, since I can just override that requirement.. just curious. Thanks again, Daniel On Nov 16, 11:04 am, Gábor Fási wrote: > required: true > > On Mon, Nov 16, 2009 at 19:55, Richtermeister wrote: > > > Hi all, > > > I have a model with a field "absolute_url", which is a varchar(255), > > non-required. When generating the SQL for the tables, propel does not > > add NOT NULL, but I would like it to. > > Is there any way to affect this behavior? I've tried "notnull: true" > > and "null: false", but that didn't work. > > > Thanks, > > Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@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 -~--~~~~--~~--~--~---
[symfony-users] Re: Propel - force NOT NULL into generated SQL
required: true On Mon, Nov 16, 2009 at 19:55, Richtermeister wrote: > > Hi all, > > I have a model with a field "absolute_url", which is a varchar(255), > non-required. When generating the SQL for the tables, propel does not > add NOT NULL, but I would like it to. > Is there any way to affect this behavior? I've tried "notnull: true" > and "null: false", but that didn't work. > > Thanks, > Daniel > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@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 -~--~~~~--~~--~--~---