flightphp / active-record

Micro Active Record library in PHP, supports chain calls, events, and relations.
https://docs.flightphp.com/awesome-plugins/active-record
MIT License
7 stars 3 forks source link

Fix for table prefix being supplied. #16

Closed n0nag0n closed 1 month ago

n0nag0n commented 1 month ago

This fix cover 2 areas when supplying your own table prefixes in WHERE conditions:

  1. When you supply the prefix yourself ->eq('some_other_table.field_name', $some_value);
  2. When you supply a function in the where statement ->eq('json_extract(json_data, $.info)', $some_value);