protected function init() { parent::init(); $this->table = 'PinholeMetaData'; $this->id_field = 'integer:id'; }
/** * Saves this object to the database * * Only modified properties are updated. */ protected function saveInternal() { if ($this->id === null) { $this->name = $this->generateShortname($this->title); $this->createdate = new SwatDate(); $this->createdate->toUTC(); } parent::saveInternal(); }
protected function init() { parent::init(); $this->table = 'PinholePhotographer'; $this->id_field = 'integer:id'; }