suppose a PHP object is associated with another (one-to-one,many-to-many,etc), what is the best way to represent those associations in a datab开发者_C百科ase
I know that there are ORMs that do so, but how do these ORMs work when implementing these associations?
Through multiple tables and surrogate keys. Read this: An Introduction to Database Normalization
精彩评论