Employees.php 506 B

1234567891011121314151617181920212223
  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;
  9. class Employees extends \lithium\data\Model {
  10. public $belongsTo = array('Companies');
  11. protected $_meta = array('connection' => 'lithium_couch_test');
  12. public function lastName($entity) {
  13. $name = explode(' ', $entity->name);
  14. return $name[1];
  15. }
  16. }
  17. ?>