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 CRUD class, if such functions are dedicated to manipulate data 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'''.
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'''.