Surely there would be a 1->many relationship between:
orders_types (which ought to be called order_types) and orders
domains to orders
hostings to orders?

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Sep 2013, at 13:05:18, Kemal <[email protected]> wrote:

> Hello,
> 
> I have created a topic on stackoverflow but didn't get attention. So...
> 
> I am little confused about my db design. I have orders table that may have 
> records from one of many others. So is it OK to relate each tables with 1:1 
> to orders. Please look at orders domains andhostings table relations.
> 
> My orders table rows has either a domain or hosting regarding to its 
> orders_type value. There will be more than 10 products like domains, hostings 
> etc. So creating a column on orders table for each product would not be a 
> good practice.
> 
> What is the best way to build my structure for CakePhp?
> 
> 
> 
> 
> 
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to