p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional PHP6 (http://p2p.wrox.com/book-professional-php6-496/)
-   -   Class DataBoundObject in Chapter 7 (http://p2p.wrox.com/book-professional-php6/88204-class-databoundobject-chapter-7-a.html)

Chameleonxxx August 9th, 2012 03:35 PM

Class DataBoundObject in Chapter 7
 
Hello,

chapter 7 of Professional PHP6 show a solution for link php Object and DB table, that is ORM ( Object Relation Mapping ).
THe implementation of thi pattern is DataBoundObject class, very cool solution.
How can I handle relation many to many with this object.
If I have a situation like this:

Table Student:
ID
Name
Table Course
ID
Name
Table Student_has_Course
student_id
course_id
data
vote
How can I handle ( CRUD ) the table Student_has_Course in right OOP?

Thanks a lot

Chameleon


All times are GMT -4. The time now is 06:33 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.