/** * Save the object, and automatically update it's data if it is a brand new * record. * * @param PropelPDO $con */ public function save(PropelPDO $con = null) { if ($this->isNew()) { if (!$this->updateAllFromTwitter()) { return false; } $this->initiateTwitter(); // This has been disabled because Twitter doesn't like it so much. //error_log($this->twitter->updateStatus('@' . $this->getTwitterScreenName() . ', looks like someone might think you are a bit of a douche... http://douchecrunch.com/' . $this->getTwitterScreenName() . '/' . $this->getTwitterNameSlug())); } return parent::save($con); }
/** * Returns a peer instance associated with this om. * * Since Peer classes are not to have any instance attributes, this method returns the * same instance for all member of this class. The method could therefore * be static, but this would prevent one from overriding the behavior. * * @return DouchePeer */ public function getPeer() { if (self::$peer === null) { self::$peer = new DouchePeer(); } return self::$peer; }