Doctrine Project

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Doctrine 2 - ORM
  • Doctrine 2 - ORM
  • DDC-209 Add the notion of read-only entities
  • DDC-691

doctrine.readOnly query hint

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 2.x
  • Component/s: DQL, ORM
  • Security Level: All
  • Labels:
    None

Description

Setting such a query hint to TRUE should result in all entities being retrieved by that query to be read-only for the purposes of change-tracking. Note that the entities themselves need not necessarily be read-only in general.

This feature is a flush performance tweak that can be used to query for objects but not let the returned objects run through change-tracking on flush. Any other managed objects are tracked as usual so you can do a read-only query for 100 entities and persist a new entity in the same unit of work with optimal flushing performance.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • Source
Hide
Permalink
Konstantin added a comment - 26/Dec/11 7:54 PM

Any news?
Why query hint? What about temporary switching like fetch mode changing via query object?

Show
Konstantin added a comment - 26/Dec/11 7:54 PM Any news? Why query hint? What about temporary switching like fetch mode changing via query object?
Hide
Permalink
Gigi Largeanus added a comment - 31/May/12 8:16 AM

Any news on this?

I think this is a must have feature. Thanks for all your work.

Show
Gigi Largeanus added a comment - 31/May/12 8:16 AM Any news on this? I think this is a must have feature. Thanks for all your work.

People

  • Assignee:
    Roman S. Borschel
    Reporter:
    Roman S. Borschel
Vote (5)
Watch (5)

Dates

  • Created:
    15/Jul/10 10:17 AM
    Updated:
    31/May/12 8:16 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Doctrine Project. Try JIRA - bug tracking software for your team.