Hi, himanshu You can validate it using postValidator in form. Or you can put restrict in your your form using jQuery datepicker if you want. I don't understand that validate in model level. All possible to implement.
Have a good day. Erkhembayar Gantulga On Mon, Dec 13, 2010 at 9:03 PM, himanshu <hisupa...@yahoo.com> wrote: > I have a form which collects two dates. A check-in and a check-out date. > I am able to validate all form data. > I want to validate the piriod (between check-in and check-out dates) is > available or not. > I want to make it at model level. > Is it possible to validate at model level during form submission? If yes > then how? > If not then how can I do it? > > Appreciate all kind of help. > > -- > 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 symfony-users@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 > -- 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 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