/** * 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; }
/** * @return string|null */ public function removeGoogleCalendarEventId() { $googleCalendarEventEntry = PcGoogleCalendarEventPeer::retrieveByPK($this->getId()); if ($googleCalendarEventEntry) { $googleCalendarEventEntry->delete(); } }