Closed pwFoo closed 4 years ago
Where with more than one condition is much to write.
$wheres = array( "column" => "IDCompanies", "condition" => "=", "value" => 1 //keep in mind you could use a sub-query here );
Would a simpler syntax be possible?
Or as another way to do it... string based "selector"? Something like:
$Users = new Users(); $users->getArray("IDCompanies=1,anotherField>10,...");
I'm really like the Processwire Selectors which works that way ans also support subfield selectors too https://processwire.com/docs/selectors/#components
Yeah I could work on implementing a logic to support both ways.
Where with more than one condition is much to write.
Would a simpler syntax be possible?
Or as another way to do it... string based "selector"? Something like:
I'm really like the Processwire Selectors which works that way ans also support subfield selectors too https://processwire.com/docs/selectors/#components