The current implementation uses a mutable approach, meaning calling Criteria::add() or Criteria::set() will actually change the state of the instance.
For the 1.0 release, we'll shift to an immutable system where setters will return a new Criteria instance, leaving the state of the original instance untouched.
The current implementation uses a mutable approach, meaning calling
Criteria::add()orCriteria::set()will actually change the state of the instance.For the 1.0 release, we'll shift to an immutable system where setters will return a new
Criteriainstance, leaving the state of the original instance untouched.