/** * Creates a Repository with filter * @returns the TRepository object with a filter */ public static function where($variable, $operator, $value, $logicOperator = TExpression::AND_OPERATOR) { $class = get_called_class(); // get the Active Record class name $repository = new TRepository($class); // create the repository return $repository->where($variable, $operator, $value, $logicOperator); }