-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #560 from FriendsOfCake/custom-finder
Allow using custom finder with options.
- Loading branch information
Showing
3 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
<?php | ||
namespace Crud\Test\App\Model\Table; | ||
|
||
use Cake\ORM\Query; | ||
|
||
class BlogsTable extends \Cake\ORM\Table | ||
{ | ||
public $customOptions; | ||
|
||
/** | ||
* findWithCustomOptions | ||
* | ||
* @param Query $query | ||
* @param array $options | ||
* @return void | ||
*/ | ||
public function findWithCustomOptions(Query $query, array $options) | ||
{ | ||
$this->customOptions = $options; | ||
|
||
return $query; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters