30,997
edits
Tag: 2017 source edit |
Tag: 2017 source edit |
||
| Line 566: | Line 566: | ||
*The '''Active Record''' | *The '''Active Record''' | ||
Same as previous, but we are allowed to add some business functions into the class, if such functions are dedicated to the table or recording into this table. | Same as previous, but we are allowed to add some business functions into the class, if such functions are dedicated to the table or recording into this table. | ||
This pattern is known to be the most productive of the 3, as it is a very good compromise between the '''Table And Row Data Gateway''' and the '''Data Mapper'''. | |||
Example: This mode is used for Dolibarr development and most PHP software that includes their own framework and best practices. | Example: This mode is used for Dolibarr development and most PHP software that includes their own framework and best practices. | ||