I have and existing project that I'm incorporating php-activerecord into. It was created before php 5.3 and has it's own Date class used extensively throughout the code. We want to continue to use our Date class instead of the php-activerecord's for datetime fields pulled from the database. The current solution to this is to create our own Model class with defined __get and __set methods and have our models extend from that. See below.
Subject: Custom Date class in existing project
I have and existing project that I'm incorporating php-activerecord into. It was created before php 5.3 and has it's own Date class used extensively throughout the code. We want to continue to use our Date class instead of the php-activerecord's for datetime fields pulled from the database. The current solution to this is to create our own Model class with defined __get and __set methods and have our models extend from that. See below.
Are there potential problems with this solution apart from the overhead? Is there a better way to do this?