Arrow_left   Arrow_right
 
  #44

IR_base::dbobj2ORM variable name collision

    • Created on: Tue, 19 May 2009 (over 2 years ago)
    • Reported by: Stan Angeloff
    • Assigned to: -
    • Milestone: 1.0
    • Status: Fixed
    • Priority: Normal (3)
    • Component: -
    When looping through child_class_helpers, the key is assigned to the $name variable, which is already used as the property name. The following code solves this issue by using a different key variable in the loop:


    					// add the child class helpers to the record
    					foreach($joined_model->child_class_helpers as $hname => $hclass)
    					{
    						$obj->$hname =& new $hclass($o);
    					}


    Cheers,
    Stan
  • Followers
     
    Ico-users Stan Angeloff 
     
    Attachments
    No attachments
    Associations
     
    No associations
    Activity
     
    User picture

          on May 19, 2009 @ 01:45PM UTC * By m4rw3r

    Status changed from New to Fixed
    (In revision:279) Fixes #42, #43, #44 and #45
    Thanks for spotting those Stan!
    Time Expenditure
    Loading