MockImage.php 891 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 MockImage extends \lithium\tests\mocks\data\MockBase {
  10. public $belongsTo = array(
  11. 'Gallery' => array('to' => 'lithium\tests\mocks\data\model\MockGallery')
  12. );
  13. public $hasMany = array(
  14. 'ImageTag' => array('to' => 'lithium\tests\mocks\data\model\MockImageTag')
  15. );
  16. public static $connection = null;
  17. protected $_meta = array(
  18. 'key' => 'id',
  19. 'name' => 'Image',
  20. 'source' => 'mock_image',
  21. 'connection' => false
  22. );
  23. protected $_schema = array(
  24. 'id' => array('type' => 'integer'),
  25. 'title' => array('type' => 'string'),
  26. 'image' => array('type' => 'string'),
  27. 'gallery_id' => array('type' => 'integer')
  28. );
  29. }
  30. ?>