How to tell a model to use a table but only rows where foo_bar = 2?

How to tell a model to use a table but only rows where foo_bar = 2 ?

Class BarTable extends table {
...
$this->table('baz', ['conditions' => ['foo_bar'=>2 ]);

At the moment I can do it via associations, for models associated with BarTable. Is that the only way?

Custom finder?
https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#custom-find-methods
https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#stacking-multiple-operations

public function findFooBar(Query $query, array $options)
{
    return $query->where('foo_bar' => 2]);
}

$myresults = $bar->find('fooBar')
->where(['other_condition' => 'blahblahblah']);

Thanks Diego.

Do you think this is a good feature to request?

In this case I am using a plugin’s table, but don’t need all the rows, just a table of the relevant rows for my app.

other solution is to use beforefind
https://book.cakephp.org/3.0/en/orm/table-objects.html#beforefind

beforefind is a global solution for changing all finders, the first option you can choose where to use this limited find condition