[ create a new paste ] login | about

Link: http://codepad.org/eGlNwfuR    [ raw code | fork ]

fabioluciano - PHP, pasted on Jan 4:
<?php
class Model_Log_Search extends \Orm\Model
{

  protected static $_connection = 'log';
  protected static $_table_name = 'searches';
  protected static $_properties = array(
    'id' => array(
      'data_type' => 'int',
    ),
    'host_id' => array(
      'data_type' => 'int'
    ),
    'searches_type_id' => array(
      'data_type' => 'int'
    ),
    'content_md5' => array(
      'data_type' => 'string'
    ),
    'content_lenght' => array(
      'data_type' => 'string'
    ),
    'output' => array(
      'data_type' => 'blob'
    ),
    'created_at' => array(
      'data_type' => 'timestamp'
    ),
    'touched_at' => array(
      'data_type' => 'timestamp',
      'default' => '00-00-0000 00:00:00 '
    )
  );
  protected static $_has_one = array(
    'search_type' => array(
      'model_to' => 'Model_Log_SearchType'
    )
  );
  protected static $_observers = array(
    'Orm\\Observer_CreatedAt' => array(
      'events' => array('before_insert'),
      'mysql_timestamp' => true,
    )
  );

}


Create a new paste based on this one


Comments: