View Single Post
Old 10-22-2009, 10:35 AM   #6 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

Tanax is correct, just because an class 'extends' another it doesn't mean that the 'base' class will have any knowledge of any derived objects. To add this functionality you would need to store the object in an array in the base object and use a getter to access it (as Tanax suggested you could use the magic get interceptor function __get)
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote