An Object-Relational Mapping and Data Persistence Solution for PHP
You are not logged in.
Jon kindly send us examples that show how polymorphism/inheritence can be easily persisted with EZPDO. The code for the examples can be downloaded here. Thanks Jon. -el
p.s. Jon's email to us:
jon wrote:
Dear EZPDO people,
A while back now I asked whether EZPDO was capable of hanlding polymorphism. With
your help I was able to prove that it can (at least with abstract classes if not
interfaces :). I also promised to write some examples.
I have finally had a chance to do just that. Please find attached a zip file
containing two examples (please place them in the example directory of the EZPDO
distribution for them to run).
The first "Polymorphism" - is simple example using the same books related
metaphor found in other examples.
The second "Polymorphism2" - is a better example of polymorphism (it's really
difficult to think of a decent way to show polymorphism with books :). This
example uses different shapes (Circle and Square) which extend the Shape abstract
class.
I hope you find them useful and that others do as well.
Regards and thanks for all your hard work. It is appeaciated.
Jon Moss
Offline
link reports code 403. Might wanna check directory permission.
Thanks !
Offline
should be working now.
Offline
I think so and hopefully it will continue working.I hope it will not happen again.
Offline