public defaultConditions ( Model $Model, string | array | boolean $conditions, boolean $useAlias = true ) : mixed | ||
$Model | Model | The model to get conditions for. |
$conditions | string | array | boolean | Array of conditions, conditions string, null or false. If an array of conditions, or string conditions those conditions will be returned. With other values the model's existence will be checked. If the model doesn't exist a null or false will be returned depending on the input value. |
$useAlias | boolean | Use model aliases rather than table names when generating conditions |
return | mixed | Either null, false, $conditions or an array of default conditions to use. |