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

269279
388
				if(is_object($data['model']))
388
				if(is_object($data['model']))
389
				{
389
				{
390
					// add the child class helpers to the record
390
					// add the child class helpers to the record
391
					foreach($joined_model->child_class_helpers as $name => $hclass)
391
					foreach($joined_model->child_class_helpers as $hname => $hclass)
392
					{
392
					{
393
						$obj->$name =& new $hclass($o);
393
						$obj->$hname =& new $hclass($o);
394
					}
394
					}
395
				}
395
				}
396
				
396
				
...
...
426
				if(is_object($model))
426
				if(is_object($model))
427
				{
427
				{
428
					// add the child class helpers to the record
428
					// add the child class helpers to the record
429
					foreach($model->child_class_helpers as $name => $hclass)
429
					foreach($model->child_class_helpers as $hname => $hclass)
430
					{
430
					{
431
						$result[$sid]->$name =& new $hclass($result[$sid]);
431
						$result[$sid]->$hname =& new $hclass($result[$sid]);
432
					}
432
					}
433
				}
433
				}
434
			}
434
			}
...
...
440
		{
440
		{
441
			if( ! empty($result))
441
			if( ! empty($result))
442
			{
442
			{
443
				$result =& array_shift($result);
443
				reset($result);
444
				$result =& $result[key($result)];
445
				
444
			}
446
			}
445
			else
447
			else
446
			{
448
			{