protected function preInsert() { $this->url = DatabaseObject_StaticUtility::generateUniqueUrl($this->_db, $this->_table, $this->profile->name, $this->user_id); return true; }
protected function preInsert() { $this->url = DatabaseObject_StaticUtility::generateUniqueUrl($this->_db, $this->_table, $this->profile->title, $this->user_id); //echo "here at preinsert id: ".$this->user_id; this->user_id is retrived because when the user inserts a new column, the user_id is automatically et. return true; }