---
title: "How to Ignore Entity Changes"
url: "https://docs.ravendb.net/6.2/client-api/session/how-to/ignore-entity-changes"
version: "6.2"
language: "php"
---

# How to Ignore Entity Changes

> Client language: PHP. Also available for [C#](https://docs.ravendb.net/6.2/client-api/session/how-to/ignore-entity-changes.md), [Java](https://docs.ravendb.net/6.2/client-api/session/how-to/ignore-entity-changes.java.md), [Python](https://docs.ravendb.net/6.2/client-api/session/how-to/ignore-entity-changes.python.md), [Node.js](https://docs.ravendb.net/6.2/client-api/session/how-to/ignore-entity-changes.nodejs.md).
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

> **Note**
>
> - By default, each session tracks the changes made in all the entities it has ever stored, loaded, or queried for.  
>   All changes are then persisted when `saveChanges` is called.
>
> - To ignore entity changes when calling `saveChanges`, **disable entity tracking** by any of the following:
>   - [Disable tracking for a specific entity in session](https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-disable-tracking.php.md#disable-tracking-a-specific-entity-in-session)
>   - [Disable tracking for all entities in session](https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-disable-tracking.php.md#disable-tracking-all-entities-in-session)
>   - [Disable tracking for query results](https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-disable-tracking.php.md#disable-tracking-query-results)
>   - [Customize tracking in conventions](https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-disable-tracking.php.md#customize-tracking-in-conventions)

## See also

- [What is a Session and How Does it Work](https://docs.ravendb.net/6.2/client-api/session/what-is-a-session-and-how-does-it-work.php.md)
- [How to Check if Entity has Changed](https://docs.ravendb.net/6.2/client-api/session/how-to/check-if-entity-has-changed.php.md)
- [How to Check if There are Any Changes on a Session](https://docs.ravendb.net/6.2/client-api/session/how-to/check-if-there-are-any-changes-on-a-session.php.md)
- [Evict Entity From a Session](https://docs.ravendb.net/6.2/client-api/session/how-to/evict-entity-from-a-session.php.md)
- [Refresh Entity](https://docs.ravendb.net/6.2/client-api/session/how-to/refresh-entity.php.md)
