It was originally planned that EntityManager::clear() would also support an optional argument - $entity -, which would remove only the reference to an existent entity (maybe also consider a new cascade to allow graph clearing) from UoW.
Currently, it's win or wall. You can't clear a specific portion of Entities.
|Field||Original Value||New Value|
|Fix Version/s||2.2-DEV [ 10157 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Workflow||jira [ 12831 ]||jira-feedback [ 14955 ]|
|Workflow||jira-feedback [ 14955 ]||jira-feedback2 [ 16819 ]|
|Workflow||jira-feedback2 [ 16819 ]||jira-feedback3 [ 19072 ]|