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] 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] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to