~agasti-rhok-02/sahana-agasti/mayon-rhok-02

« back to all changes in this revision

Viewing changes to lib/model/doctrine/base/BaseagPetNote.class.php

  • Committer: Chad Heuschober
  • Date: 2010-12-04 04:01:41 UTC
  • mfrom: (1.2.1 mayon)
  • Revision ID: chad.heuschober@mail.cuny.edu-20101204040141-orjw950gt411jzmt
Merged changes from r2 of project trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/**
 
4
 * BaseagPetNote
 
5
 * 
 
6
 * This class has been auto-generated by the Doctrine ORM Framework
 
7
 * 
 
8
 * @property integer $id
 
9
 * @property integer $pet_id
 
10
 * @property timestamp $time_stamp
 
11
 * @property integer $event_staff_id
 
12
 * @property gzip $pet_note
 
13
 * @property agPet $agPet
 
14
 * @property agEventStaff $agEventStaff
 
15
 * 
 
16
 * @method integer      getId()             Returns the current record's "id" value
 
17
 * @method integer      getPetId()          Returns the current record's "pet_id" value
 
18
 * @method timestamp    getTimeStamp()      Returns the current record's "time_stamp" value
 
19
 * @method integer      getEventStaffId()   Returns the current record's "event_staff_id" value
 
20
 * @method gzip         getPetNote()        Returns the current record's "pet_note" value
 
21
 * @method agPet        getAgPet()          Returns the current record's "agPet" value
 
22
 * @method agEventStaff getAgEventStaff()   Returns the current record's "agEventStaff" value
 
23
 * @method agPetNote    setId()             Sets the current record's "id" value
 
24
 * @method agPetNote    setPetId()          Sets the current record's "pet_id" value
 
25
 * @method agPetNote    setTimeStamp()      Sets the current record's "time_stamp" value
 
26
 * @method agPetNote    setEventStaffId()   Sets the current record's "event_staff_id" value
 
27
 * @method agPetNote    setPetNote()        Sets the current record's "pet_note" value
 
28
 * @method agPetNote    setAgPet()          Sets the current record's "agPet" value
 
29
 * @method agPetNote    setAgEventStaff()   Sets the current record's "agEventStaff" value
 
30
 * 
 
31
 * @package    AGASTI_CORE
 
32
 * @subpackage model
 
33
 * @author     CUNY SPS
 
34
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 
35
 */
 
36
abstract class BaseagPetNote extends sfDoctrineRecord
 
37
{
 
38
    public function setTableDefinition()
 
39
    {
 
40
        $this->setTableName('ag_pet_note');
 
41
        $this->hasColumn('id', 'integer', 5, array(
 
42
             'primary' => true,
 
43
             'type' => 'integer',
 
44
             'autoincrement' => true,
 
45
             'length' => 5,
 
46
             ));
 
47
        $this->hasColumn('pet_id', 'integer', 4, array(
 
48
             'type' => 'integer',
 
49
             'notnull' => true,
 
50
             'length' => 4,
 
51
             ));
 
52
        $this->hasColumn('time_stamp', 'timestamp', null, array(
 
53
             'type' => 'timestamp',
 
54
             'notnull' => true,
 
55
             ));
 
56
        $this->hasColumn('event_staff_id', 'integer', 5, array(
 
57
             'type' => 'integer',
 
58
             'notnull' => true,
 
59
             'length' => 5,
 
60
             ));
 
61
        $this->hasColumn('pet_note', 'gzip', null, array(
 
62
             'type' => 'gzip',
 
63
             'notnull' => true,
 
64
             ));
 
65
    }
 
66
 
 
67
    public function setUp()
 
68
    {
 
69
        parent::setUp();
 
70
        $this->hasOne('agPet', array(
 
71
             'local' => 'pet_id',
 
72
             'foreign' => 'id'));
 
73
 
 
74
        $this->hasOne('agEventStaff', array(
 
75
             'local' => 'event_staff_id',
 
76
             'foreign' => 'id'));
 
77
 
 
78
        $timestampable0 = new Doctrine_Template_Timestampable();
 
79
        $this->actAs($timestampable0);
 
80
    }
 
81
}
 
 
b'\\ No newline at end of file'