MockGallery.php 801 B

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