MockQueryPost.php 790 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Lithium: the most rad php framework
  4. *
  5. * @copyright Copyright 2013, Union of RAD (http://union-of-rad.org)
  6. * @license http://opensource.org/licenses/bsd-license.php The BSD License
  7. */
  8. namespace lithium\tests\mocks\data\model;
  9. class MockQueryPost extends \lithium\tests\mocks\data\MockBase {
  10. public static $connection = null;
  11. public $hasMany = array('MockQueryComment');
  12. protected $_meta = array('source' => false, 'connection' => false, 'key' => 'id');
  13. protected $_schema = array(
  14. 'id' => array('type' => 'integer'),
  15. 'author_id' => array('type' => 'integer'),
  16. 'title' => array('type' => 'string', 'length' => 255),
  17. 'body' => array('type' => 'text'),
  18. 'created' => array('type' => 'datetime'),
  19. 'updated' => array('type' => 'datetime')
  20. );
  21. }
  22. ?>