Closed WizMik closed 10 years ago
Indeed. In order to fix this, we would need to:
Basically, it is very difficult to fix. Moreover, it is likely TDBM 4 will not let you access properties directly (or do a foreach on a property) but instead will force you through the setters and getters. So you should probably avoid doing a foreach on an object since this will be deprecated. I'll keep this bug as a "won't fix".
When a Bean is created ( $dao->create() ), you can't acess its properties through a foreach (because the bean has no properties unless they've been initiated or loaded from the database).
It could be usefull to initiate Bean's properties of a newly created TDBM_Object with a foreach !