Closed f3l1x closed 8 years ago
const OPERATOR_EQUAL_OR_GREATER = '=>'; const OPERATOR_EQUAL_OR_SMALLER = '=<';
But parseCondition support only => OR =<
preg_match('#^([\w\\\]+(?:->\w+)*)(!|!=|<=|>=|=|>|<)?$#', $condition, $matches)
When I use => / =< it ends with (https://github.com/nextras/orm/blob/v1.1.4/src/Collection/Helpers/ConditionParserHelper.php#L28)
// ConditionParserHelper throw new InvalidArgumentException('Unsupported condition format.');
When I use >= / <= it ends with (https://github.com/nextras/orm/blob/v1.1.4/src/Collection/Helpers/ArrayCollectionHelper.php#L94)
// ArrayCollectionHelper throw new InvalidArgumentException();
oh, that's stupid :(
Thanks. :+1:
But parseCondition support only => OR =<
When I use => / =< it ends with (https://github.com/nextras/orm/blob/v1.1.4/src/Collection/Helpers/ConditionParserHelper.php#L28)
When I use >= / <= it ends with (https://github.com/nextras/orm/blob/v1.1.4/src/Collection/Helpers/ArrayCollectionHelper.php#L94)