Added support for multiple decorators
authorMatthias Schmidt <gravatronics@live.com>
Wed, 20 Jul 2011 22:25:51 +0000 (00:25 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 20 Jul 2011 22:25:51 +0000 (00:25 +0200)
commit28914c73043b19872442ba9db72162a83759571c
tree6f60f35a5ab24ea7229c1c3dad87d324c7b2b3c4
parentecef711a55f9c1aee29739330fc5e2b5214cf0d1
Added support for multiple decorators

It should be possible that a class that extends DatabaseObjectDecorator
is decorated again (basic principle of the decorator pattern) which isn'
t the case at the moment since the original object's methods can't be ca
lled anymore, so we need to check if the base class itself is a decorate
d object before the exception is thrown that the method doesn't exist.
wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php