<?php
class Application_Model_Documentations extends Zend_Db_Table_Abstract {
	protected $_id;
	
	protected $_docuemented_document_uuid;
	
	protected $_documented_directory_id;
	
	protected $_documentation_document_uuid;
	
	protected $_user_id;
	
	protected $_created_at;
	
	protected $_comment;
	
	protected $_name = "documentations";
	
	protected $_sequence = true;
	
	protected $_primary = "id";
	
	protected $_referenceMap = array(
		"document" => array(
			"columns" => "documented_document_uuid"
			, "refTableClass" => "Application_Model_Documents"
			, "refColumns" => "uuid"
		),
		
		"directory" => array(
			"columns" => "documented_directory_id"
			, "refTableClass" => "Application_Model_DocumentsDirectories"
			, "refColumns" => "id"
		),
		
		"documentation" => array(
			"columns" => "documentation_document_uuid"
			, "refTableClass" => "Application_Model_Documents"
			, "refColumns" => "uuid"
		), 
		
		"user" => array(
			"columns" => "user_id"
			, "refTableClass" => "Application_Model_Users"
			, "refColumns" => "id"
		)
	);
}