#1571: Proposal: change ATTR_AUTO_ACCESSOR_OVERRIDE and introduce hasAccessor
-----------------------------------+----------------------------------------
 Reporter:  jtaal                  |       Owner:  romanb 
     Type:  defect                 |      Status:  new    
 Priority:  minor                  |   Milestone:  Unknown
Component:  Record                 |     Version:  1.0.3  
 Keywords:  Accessor               |    Has_test:  1      
 Mystatus:  Pending Core Response  |   Has_patch:  1      
-----------------------------------+----------------------------------------
 I'm proposing a change to doctrine,

 I've been looking at the ATTR_AUTO_ACCESSOR_OVERRIDE implementation.

 The $_customAccessor array made me believe you can define custom accessors
 without turning on ATTR_AUTO_ACCESSOR_OVERRIDE. I've created a patch on
 the 1.0 branch that implements a hasAccessor method. With this method you
 can define an accessor for a specific field instead of the naming
 convention that has to be either on or off.
 My implementation will execute an accessor inside the _get method instead
 of the get method (this breaks testcase 1077).

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1571>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to