php-rql icon indicating copy to clipboard operation
php-rql copied to clipboard

Insert fails when using with Braintree PHP installed and having const "Braintree" on the saved class

Open RobIsHere opened this issue 7 years ago • 1 comments

Because of the is_subclass_of check in php-rql https://github.com/danielmewes/php-rql/blob/master/rdb/DatumConverter.php#L37

saving something like this fails because the check triggers the autoloader that in turn reveals an unfortunate code in Braintree's lib.

class User {
    const PAYMENT_PROVIDER = 'Braintree'
}

RobIsHere avatar Apr 05 '17 16:04 RobIsHere

I've submitted a PR about this one. #148

Geekimo avatar Dec 24 '17 16:12 Geekimo