Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloelcolombiano authored Jun 10, 2021
1 parent a87901c commit ead0957
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ Scenarios should implement the `CakephpFixtureFactories\Scenario\FixtureScenario

## Querying the database

Because the fixture factories are closely related to the database, the package provide two methods to conveniently
query the database. Note that both methods will by-pass the `beforeFind` event, facilitating the inspection of your
Because the fixture factories are closely related to the database, the package provides two methods to conveniently
run queries. Both methods will by-pass the `beforeFind` event, enabling the direct inspection of your
test database.

#### ArticleFactory::find()
This method will return a query on the table related to the given factory.
This method will return a query on the table related to the given factory. It takes as input the same parameters as the classic table `find()` method.

#### ArticleFactory::count()
This method will return the number of entries in the table of the given factory.
Expand Down

0 comments on commit ead0957

Please sign in to comment.