PageRenderTime 50ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/lib/model/doctrine/base/BaseAuthor.class.php

https://bitbucket.org/ealexandru/jobeet
PHP | 57 lines | 33 code | 3 blank | 21 comment | 0 complexity | ed2dde61f8221fa716f7e933cfdf492b MD5 | raw file
Possible License(s): ISC, AGPL-3.0, LGPL-2.1, BSD-3-Clause, LGPL-3.0
  1. <?php
  2. /**
  3. * BaseAuthor
  4. *
  5. * This class has been auto-generated by the Doctrine ORM Framework
  6. *
  7. * @property string $name
  8. * @property string $type
  9. * @property Doctrine_Collection $Articles
  10. *
  11. * @method string getName() Returns the current record's "name" value
  12. * @method string getType() Returns the current record's "type" value
  13. * @method Doctrine_Collection getArticles() Returns the current record's "Articles" collection
  14. * @method Author setName() Sets the current record's "name" value
  15. * @method Author setType() Sets the current record's "type" value
  16. * @method Author setArticles() Sets the current record's "Articles" collection
  17. *
  18. * @package symfony12
  19. * @subpackage model
  20. * @author Your name here
  21. * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
  22. */
  23. abstract class BaseAuthor extends myDoctrineRecord
  24. {
  25. public function setTableDefinition()
  26. {
  27. $this->setTableName('author');
  28. $this->hasColumn('name', 'string', 255, array(
  29. 'type' => 'string',
  30. 'length' => 255,
  31. ));
  32. $this->hasColumn('type', 'string', 255, array(
  33. 'type' => 'string',
  34. 'length' => 255,
  35. ));
  36. $this->setSubClasses(array(
  37. 'AuthorInheritance' =>
  38. array(
  39. 'type' => 'AuthorInheritance',
  40. ),
  41. 'BlogAuthor' =>
  42. array(
  43. 'type' => 'BlogAuthor',
  44. ),
  45. ));
  46. }
  47. public function setUp()
  48. {
  49. parent::setUp();
  50. $this->hasMany('Article as Articles', array(
  51. 'local' => 'id',
  52. 'foreign' => 'author_id'));
  53. }
  54. }