public function replaceReconstitutedEntity($oldEntity, $newEntity)
    {
        $this->reconstitutedEntities->detach($oldEntity);
        $this->reconstitutedEntities->attach($newEntity);
    }
public function replaceReconstitutedEntity($oldEntity, $newEntity)
    {
        $this->reconstitutedEntities->detach($oldEntity);
        $this->reconstitutedEntities->attach($newEntity);
    }
public function replaceReconstitutedEntity ( $ oldEntity , $ newEntity ) { $ this -> reconstitutedEntities -> detach ( $ oldEntity ) ; $ this -> reconstitutedEntities -> attach ( $ newEntity ) ; }
Replace a reconstituted object, leaves the clean data unchanged.

@param object $oldEntity
@param object $newEntity
@return void
Replace a reconstituted object leaves the clean data unchanged .