/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/test/functional/fixtures/lib/model/doctrine/base/BaseAuthor.class.php
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
- <?php
- /**
- * BaseAuthor
- *
- * This class has been auto-generated by the Doctrine ORM Framework
- *
- * @property string $name
- * @property string $type
- * @property Doctrine_Collection $Articles
- *
- * @method string getName() Returns the current record's "name" value
- * @method string getType() Returns the current record's "type" value
- * @method Doctrine_Collection getArticles() Returns the current record's "Articles" collection
- * @method Author setName() Sets the current record's "name" value
- * @method Author setType() Sets the current record's "type" value
- * @method Author setArticles() Sets the current record's "Articles" collection
- *
- * @package symfony12
- * @subpackage model
- * @author Your name here
- * @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
- */
- abstract class BaseAuthor extends myDoctrineRecord
- {
- public function setTableDefinition()
- {
- $this->setTableName('author');
- $this->hasColumn('name', 'string', 255, array(
- 'type' => 'string',
- 'length' => 255,
- ));
- $this->hasColumn('type', 'string', 255, array(
- 'type' => 'string',
- 'length' => 255,
- ));
- $this->setSubClasses(array(
- 'AuthorInheritance' =>
- array(
- 'type' => 'AuthorInheritance',
- ),
- 'BlogAuthor' =>
- array(
- 'type' => 'BlogAuthor',
- ),
- ));
- }
- public function setUp()
- {
- parent::setUp();
- $this->hasMany('Article as Articles', array(
- 'local' => 'id',
- 'foreign' => 'author_id'));
- }
- }