I have 2 objects with different values, but when I save it it saves as a single object.
Example of how I'm using:
class Objeto {
private $Nome;
public function setNome($Nome){
$this->Nome = $Nome;
}
public function getNome(){
return $this->Nome;
}
}
$objet2 = $obj1 = new Objeto();
$obj1->setNome("Pedro");
$objet2->setNome("Marcos");
salvar($obj1);
salvar($objet2);
It saves as the registry id $ obj1 but with the $ objet2 data.