root/trunk/application/libraries/ignitedrecord/Base_php5.php

264279
387
				if(is_object($data['model']))
387
				if(is_object($data['model']))
388
				{
388
				{
389
					// add the child class helpers to the record
389
					// add the child class helpers to the record
390
					foreach($joined_model->child_class_helpers as $name => $hclass)
390
					foreach($joined_model->child_class_helpers as $hname => $hclass)
391
					{
391
					{
392
						$o->$name = new $hclass($o); // PHP 4: $obj->$name =& new $hclass($o);
392
						$o->$hname = new $hclass($o); // PHP 4: $obj->$name =& new $hclass($o);
393
					}
393
					}
394
				}
394
				}
395
				
395
				
...
...
425
				if(is_object($model))
425
				if(is_object($model))
426
				{
426
				{
427
					// add the child class helpers to the record
427
					// add the child class helpers to the record
428
					foreach($model->child_class_helpers as $name => $hclass)
428
					foreach($model->child_class_helpers as $hname => $hclass)
429
					{
429
					{
430
						$result[$sid]->$name = new $hclass($result[$sid]); // PHP 4: $result[$sid]->$name =& new $hclass($result[$sid]);
430
						$result[$sid]->$hname = new $hclass($result[$sid]); // PHP 4: $result[$sid]->$name =& new $hclass($result[$sid]);
431
					}
431
					}
432
				}
432
				}
433
			}
433
			}