#1628: non-boolean/constant attributes not working while creating model from 
yaml
file
-----------------------------------+----------------------------------------
 Reporter:  e_squire               |       Owner:  jwage  
     Type:  defect                 |      Status:  new    
 Priority:  minor                  |   Milestone:  Unknown
Component:  Attributes             |     Version:  1.1-DEV
 Keywords:                         |    Has_test:  0      
 Mystatus:  Pending Core Response  |   Has_patch:  0      
-----------------------------------+----------------------------------------
 The `buildAttributes` function from
 source:/branches/0.11/lib/Doctrine/Import/Builder.php (line 796) only
 handles boolean and constant values from `Doctrine::`.

 Attributes that expect a string value will not work. An example is
 `COLL_KEY`.

 == yml file ==
 {{{
 attributes:
   coll_key: id
 }}}

 == Expected result ==
 {{{
 $this->setAttribute(Doctrine::ATTR_COLL_KEY, 'id');
 }}}

 == Actual result ==
 {{{
 $this->setAttribute(Doctrine::ATTR_COLL_KEY, Doctrine::COLL_KEY_ID);
 }}}

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1628>
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