Naktibalda · GitHub

Thanks.

I looked at documentation page again and found that Supported operators are documented under seeInDatabase, dontSeeInDatabase and grabFromDatabase, but not under seeNumRecords and grabNumRecords.

Comparison expressions can be used as well:

<?php
$post = $I->grabFromDatabase('posts', ['num_comments >=' => 100]);
$user = $I->grabFromDatabase('users', ['email like' => 'miles%']);

Supported operators: <, >, >=, <=, !=, like.

I think that this section could be moved to Query Generation and a link to Query Generation should be added to docblock of each relevant method - Comparison expressions can be used as well.

What do you think?

Also Since version 2.1.9 is no longer relevant.

Read the original on github.com ↗