/** * Set the value of [languages] column. * * @param string $v new value * * @return void */ public function setLanguages($v) { // Since the native PHP type for this column is string, // we will serialize the input to a string (if it is not). if ($v !== null) { if (is_array($v) and 1 == count($v) and "*" == $v[0]) { //get all of the languages for the schema $v = $this->getLanguagesForSchema(); } $v = serialize($v); } parent::setLanguages($v); }
/** * 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 SchemaHasUserPeer */ public function getPeer() { if (self::$peer === null) { self::$peer = new SchemaHasUserPeer(); } return self::$peer; }