Tag Info

New answers tagged


Both options have drawbacks: the first depends on the "magic string" of the column name, the second depends on the "magic number" of the column index. A good suite of automated unittests could cover either usage and help a great deal in preventing breaking changes though... I would personally favor the first for a number of reasons, but they are probably ...


The connecting table that you speak of is called a junction table. Using the Wikipedia example, they have 3 tables defined. User ---- User ID User Login User Password User Name Permission ---------- Permission ID Permission Description UserPermission -------------- User ID Permission ID Now, you can map these 3 tables to PHP classes. It would probably ...

Top 50 recent answers are included