2007-09-02 18:24:49 +04:00
|
|
|
<?php
|
2008-05-14 01:20:34 +04:00
|
|
|
class PackageVersion extends Doctrine_Entity {
|
2007-09-02 18:24:49 +04:00
|
|
|
public function setTableDefinition() {
|
|
|
|
$this->hasColumn('package_id', 'integer');
|
|
|
|
$this->hasColumn('description', 'string', 255);
|
|
|
|
}
|
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
$this->hasOne('Package', 'PackageVersion.package_id');
|
|
|
|
$this->hasMany('PackageVersionNotes as Note', 'PackageVersionNotes.package_version_id');
|
|
|
|
}
|
|
|
|
}
|