<?php

class DocumentationPageVersion extends ActiveRecord {



	protected $tableName = 'documents_versions';
	protected $belongsTo = array('document' => array('DocumentationPage', 'document_id'));



	public function buildDBAdapter() {
		require_once 'DocumentationDBFactory.class.php';
		return DocumentationDBFactory::getAdapter();
	}



	public function save() {
		$this->created = time();
		return parent::save();
	}



} // class DocumentationPageVersion

?>