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
Roman S. Borschel made changes - 15/Jul/10 10:17 AM
Field Original Value New Value
Parent DDC-209 [ 10612 ]
Issue Type New Feature [ 2 ] Sub-task [ 5 ]
Benjamin Eberlei made changes - 29/Mar/11 2:33 PM
Fix Version/s 2.x [ 10090 ]
Fix Version/s 2.1 [ 10022 ]
Benjamin Eberlei made changes - 07/Jul/12 2:01 PM
Workflow jira [ 11628 ] jira-feedback [ 13864 ]
Benjamin Eberlei made changes - 07/Jul/12 2:08 PM
Workflow jira-feedback [ 13864 ] jira-feedback2 [ 15728 ]
Benjamin Eberlei made changes - 08/Jul/12 6:21 AM
Workflow jira-feedback2 [ 15728 ] jira-feedback3 [ 17985 ]

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.