[CDBI] re-casting cdbi classes?

Peter Speltz peterspeltz at gmail.com
Mon Mar 20 21:19:34 GMT 2006


On 3/18/06, Ben Lavender <blavender at gmail.com> wrote:

> if ($event->usesMiles) {
>     &some_specific_miles_stuff($event);  #Crap!
> }
>
> The problem is that I dont see a way to tell this class that it should
> be a mileage event now instead of a generic one at the last method
> call without just reloading it from the database;

Is it not a given that if you call "some_specific_miles_stuff" that
the event you are passing it is a miles event? Upon a quick read of
your problem , it seems weird to me that that would not be the case.




More information about the ClassDBI mailing list