I have a condition on which most of my models will have to adhere when retrieving data.
This condition will be the id of the company to which the user logged in. So for instance, let's say the company id is 1, then all the information relating to company_id 1 must show.
How can I set a default condition to my models?
Check this code
To decouple it from the models I would suggest you to implement these two methods in a behavior and attach it to only the models that need it.
Edit, here as behavior:
In your AppController you can do this: