コード例 #1
0
 private function copyObjectToTrashBin()
 {
     $id = $this->getId();
     if (!($trashBin = PcTrashbinUsersContextsPeer::retrieveByPK($id))) {
         $trashBin = new PcTrashbinUsersContexts();
     }
     $trashBin->setId($id)->setUserId($this->getUserId())->setContext($this->getContext())->setUpdatedAt($this->getUpdatedAt())->setCreatedAt($this->getCreatedAt())->setDeletedAt(time('U'))->save();
 }