flourishlib / flourish-classes

The class files for Flourish
http://flourishlib.com
182 stars 78 forks source link

fRecordSet build with non-aggregate functions #157

Open jeffturcotte opened 12 years ago

jeffturcotte commented 12 years ago

Would be nice to be able to use non-aggregate functions in fRecordSet::build where clauses.

Example:

fRecordSet::build(
    'User',
    array('my_custom_db_formatter(name)~' => 'jeff')
);
wbond commented 12 years ago

The thing this would require is knowing what the output type of the function will be. Alternatively the code could be changed to escape the input value by its PHP type if the key of the array conditions can not be recognized.