Changeset 4497

Show
Ignore:
Timestamp:
06/08/08 20:59:55 (13 months ago)
Author:
jwage
Message:

Documenting attribute for enabling dql callbacks.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/manual/docs/en/event-listeners.txt

    r4478 r4497  
    566566</code> 
    567567 
    568 Now when you interact with the User model it will take in to account the deleted flag 
     568In order for these dql callbacks to be checked, you must explicitly turn them on. Because this adds a small 
     569amount of overhead for each query, we have it off by default. You can turn it on with the following attribute: 
     570 
     571<code type="php"> 
     572Doctrine_Manager::getInstance()->setAttribute('use_dql_callbacks', true); 
     573</code> 
     574 
     575Now when you interact with the User model it will take in to account the deleted flag. 
    569576 
    570577<code type="php">