MockDatabasePost.php 798 B

1234567891011121314151617181920212223242526272829303132
  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 MockDatabasePost extends \lithium\tests\mocks\data\MockBase {
  10. public static $connection = null;
  11. public $hasMany = array(
  12. 'MockDatabaseComment',
  13. 'MockDatabasePostRevision' => array(
  14. 'constraints' => array('MockDatabasePostRevision.deleted' => null)
  15. )
  16. );
  17. protected $_meta = array('connection' => false, 'key' => 'id');
  18. protected $_schema = array(
  19. 'id' => array('type' => 'integer'),
  20. 'author_id' => array('type' => 'integer'),
  21. 'title' => array('type' => 'string'),
  22. 'created' => array('type' => 'datetime')
  23. );
  24. }
  25. ?>