Ich habe eine Frage, weshalb diese Fehlermeldung in einem bestimmten Fall auftritt:
	Akteure sind folgende:
	
	
Wenn ich nun eine Property so ändere:
	
ist das kein Problem. Wenn ich es aber wie folgt ändere:
	
Gibt es die oben genannte Fehlermeldung. Weshalb?
							
						
					Code:
	
	[B]Notice:[/B] Indirect modification of overloaded property LoginPopo::$rightgroups has no effect in ...
PHP-Code:
	
	
<?php
abstract class PHibernatePopo {
    private $objectChanged = null;
    
    public function __get($property) {
        return $this->$property;
    }
    
    public function __set($property,$value) {
        if($this->$property !== $value)
            $this->objectChanged = time();
        
        $this->$property = $value;
    }
    
    public function resetChanged() {
        $this->objectChanged = null;
    }
    
    public function hasChanged() {
        if($this->objectChanged === null)
            return false;
        
        return true;
    }
}
?>
PHP-Code:
	
	
<?php 
class RightgroupPopo extends PHibernatePopo {
    protected $ID;
    protected $groupname;
}
?>
PHP-Code:
	
	
$rightGrpObj = $result[0]->rightgroups[0]->rightgroup;
$rightGrpObj->groupname = 'New Name'; 
PHP-Code:
	
	
$result[0]->rightgroups[0]->rightgroup->groupname = 'New Name'; 
 
          
 .
.
Kommentar