...
- By default, a find that does not request a specific record ID will be modified to return the most current revision and to exclude deleted records.
A find with the
changelog
parameterarchived
set to true will return all records, not just those described above.Code Block $args['conditions']['Model.field'] = $requestedField; $args['changelog']['archived'] = true; $Model->find('all', $args);
By passing the
changelog
parameterrevision
, a find can request a specific revision for a record:Code Block $args['conditions']['Model.id'] = $requestedId; $args['changelog']['revision'] = $requestedRevision; $Model->find('first', $args);
- If ChangelogBehavior is initialized with the setting expunge set to true, all records will be returned, not just those described above.
...