j4mie / idiorm

A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5.
http://j4mie.github.com/idiormandparis/
2.01k stars 369 forks source link

is there where expression ? #339

Closed navotera closed 6 years ago

navotera commented 6 years ago

how can i accomplish where expression such as

where year(column) = '2018' or other where expression ?

navotera commented 6 years ago

never mind...

using where raw seems solve this : where_raw('(year(' . $table . '.date))', [$year]);