In client side with javascript when submit button is clicked

On Tue, May 4, 2010 at 6:43 PM, John Andersen <[email protected]>wrote:

> Can you explain why an Order must have at least one item in your
> application?
>
> I would disagree, but that is because I assume that I can make an
> Order with the one Item, and then delete the Item and choose another.
> So in my opinion the Order can be without any Items.
>
> Another point is that when the Order is to be submitted for
> processing, then the Order must at least have one Item.
>
> Can you comment on this? Enjoy,
>   John
>
> On May 4, 5:35 pm, Ernesto <[email protected]> wrote:
> > Hello.
> >
> > is there any simple way to implement the "At least one related record"
> > conditions to Cake model's associations?
> >
> > for example:
> >
> > i have an Order model hasMany Items.
> >
> > an order cannot be empty. it must contain at least one item (i.e.
> > related record)
> >
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> with their CakePHP related questions.
> >
> > You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected]>For
> >  more options, visit this group athttp://
> groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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/cake-php?hl=en

Reply via email to