17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1106 Views |
-
ComponentSet::add()

17 July 2007 at 6:28pm
I have a class XEHotel, which is a subclass of XEProduct. I am trying ComponentSet::add($XEHotel) and got such error:
user_error(ComponentSet::add() Tried to add an 'XEHotel' object, but 'XEProduct' expected,256)
line 93 of ComponentSet.phpI had a look into ComponentSet.php and see the comment:
// TODO Should this allow subclasses?
I think, it definitely should. I know, that I can always use ComponentSet::add($XEHotel->ID)
| 1106 Views | ||
|
Page:
1
|
Go to Top |

