<commit_before><?php

/**
*
* Table name: page
* This table is versioned!
*
*************************** Table Columns ************************
****	Name			****	Data Type	****	Description					
****	id				****	integer		****	Primary key, auto increment
****	active_vid		****	string		****	ID of the current version.
****	sequence		****	string		****	Not sure, think it's used for manually ordering pages.
****	published_vid	****	integer		****	The ID of the published version.
****	visible			****	boolean		****	Whether the page is visible or invisible.
******************************************************************
*
* @see Model_Version_Page
* @package Models
* @author Hoop Associates	www.thisishoop.com	<EMAIL>
* @copyright 2011, Hoop Associates
*
*/
class Model_Page extends ORM_Versioned implements Interface_Taggable {
	/**
	* Properties to create relationships with Kohana's ORM
	*/
	protected $_table_name = 'page';
	protected $_has_one = array( 
		'mptt'		=> array( 'model' => 'page_mptt' ),
		'feature_image' => array( 'model' => 'asset', 'foreign_key' => 'id' ),
	);
	protected $_has_many = array( 
		'uris'		=> array('model' => 'page_uri', 'foreign_key' => 'page_id'),
		'revisions' => array('model' => 'version_page', 'foreign_key' => 'rid' ),
	);<commit_msg>Removed bug in page-asset relationship through feature_image<commit_after><?php

/**
*
* Table name: page
* This table is versioned!
*
*************************** Table Columns ************************
****	Name			****	Data Type	****	Description					
****	id				****	integer		****	Primary key, auto increment
****	active_vid		****	string		****	ID of the current version.
****	sequence		****	string		****	Not sure, think it's used for manually ordering pages.
****	published_vid	****	integer		****	The ID of the published version.
****	visible			****	boolean		****	Whether the page is visible or invisible.
******************************************************************
*
* @see Model_Version_Page
* @package Models
* @author <NAME>	www.thisishoop.com	<EMAIL>
* @copyright 2011, Hoop Associates
*
*/
class Model_Page extends ORM_Versioned implements Interface_Taggable {
	/**
	* Properties to create relationships with Kohana's ORM
	*/
	protected $_table_name = 'page';
	protected $_has_one = array( 
		'mptt'		=> array( 'model' => 'page_mptt' ),
	);
	protected $_has_many = array( 
		'uris'		=> array('model' => 'page_uri', 'foreign_key' => 'page_id'),
		'revisions' => array('model' => 'version_page', 'foreign_key' => 'rid' ),
	);
{'fraction_non_alphanumeric': 0.2508974870362984, 'fraction_numerical': 0.0031910650179497405, 'mean_word_length': 4.9011764705882355, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5682926', 'n_tokens_mistral': 838, 'n_tokens_neox': 768, 'n_words': 219}