Ejemplo n.º 1
0
 /**
  * Gets a single PcGoogleCalendarEvent object, which is related to this object by a one-to-one relationship.
  *
  * @param      PropelPDO $con
  * @return     PcGoogleCalendarEvent
  * @throws     PropelException
  */
 public function getPcGoogleCalendarEvent(PropelPDO $con = null)
 {
     if ($this->singlePcGoogleCalendarEvent === null && !$this->isNew()) {
         $this->singlePcGoogleCalendarEvent = PcGoogleCalendarEventPeer::retrieveByPK($this->id, $con);
     }
     return $this->singlePcGoogleCalendarEvent;
 }
Ejemplo n.º 2
0
 /**
  * @return string|null
  */
 public function removeGoogleCalendarEventId()
 {
     $googleCalendarEventEntry = PcGoogleCalendarEventPeer::retrieveByPK($this->getId());
     if ($googleCalendarEventEntry) {
         $googleCalendarEventEntry->delete();
     }
 }