> This is interesting. I have these Modles, however my setup is Order HABTM
> Item (link table Items_orders). Then when I want to add items to the order I
> use bindModel to create a hasMany association between Order and ItemsOrder.
> I'm interested to know why you chose the above associations?

Those associations are based on an app I wrote about a year ago.  I've
been doing some work on it recently, and the code has held up pretty
well, so based on that I happen to think that's a good way to do it.

> This is along the lines of what I had initially planned. How would the above
> handle a port to PostgreSQL?

I'm pretty sure Postgres supports both sub-selects and the SUM( )
function, so I don't think you would do anything to port it, other than
change your db connection 'driver' setting to 'postgres'.

>
> We're looking at some more advanced ways
> > to build queries in Cake 1.2.
> 
> This sounds great, as usual :)

Well, we try.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to