Skip to content

Commit

Permalink
Change primary key used in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Jul 21, 2017
1 parent cb9b7e3 commit 4341b9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ $search = new Search;
// Configure the Search object
$search->setDatabaseConnection($pdo)
->setTable('products')
->setPrimaryKey('product_id')
->setPrimaryKey('product_groupid')
->setFieldsToSearch(['product_name', 'product_description', 'product_seokeywords'])
->setConditions(['product_live' => 1]);

Expand Down
2 changes: 1 addition & 1 deletion src/Example.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

$search->setDatabaseConnection($pdo)
->setTable('products')
->setPrimaryKey('product_id')
->setPrimaryKey('product_groupid')
->setFieldsToSearch(['product_name', 'product_description', 'product_seokeywords'])
->setConditions(['product_live' => 1]);

Expand Down

0 comments on commit 4341b9d

Please sign in to comment.