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

« back to all changes in this revision

Viewing changes to lib/model/doctrine/agGisPlugin/base/BaseagGeoSourceScore.class.php

  • Committer: charles wisniewski
  • Date: 2010-12-08 22:06:31 UTC
  • mfrom: (1.1.3 cuny-sps-trunk)
  • Revision ID: charles.wisniewski@mail.cuny.edu-20101208220631-63o0t8b9vi7nbbu6
all up to date

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/**
 
4
 * BaseagGeoSourceScore
 
5
 * 
 
6
 * This class has been auto-generated by the Doctrine ORM Framework
 
7
 * 
 
8
 * @property integer $id
 
9
 * @property string $geo_source_score
 
10
 * @property integer $geo_source_score_value
 
11
 * @property Doctrine_Collection $agGeoSource
 
12
 * 
 
13
 * @method integer             getId()                     Returns the current record's "id" value
 
14
 * @method string              getGeoSourceScore()         Returns the current record's "geo_source_score" value
 
15
 * @method integer             getGeoSourceScoreValue()    Returns the current record's "geo_source_score_value" value
 
16
 * @method Doctrine_Collection getAgGeoSource()            Returns the current record's "agGeoSource" collection
 
17
 * @method agGeoSourceScore    setId()                     Sets the current record's "id" value
 
18
 * @method agGeoSourceScore    setGeoSourceScore()         Sets the current record's "geo_source_score" value
 
19
 * @method agGeoSourceScore    setGeoSourceScoreValue()    Sets the current record's "geo_source_score_value" value
 
20
 * @method agGeoSourceScore    setAgGeoSource()            Sets the current record's "agGeoSource" collection
 
21
 * 
 
22
 * @package    AGASTI_CORE
 
23
 * @subpackage model
 
24
 * @author     CUNY SPS
 
25
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 
26
 */
 
27
abstract class BaseagGeoSourceScore extends sfDoctrineRecord
 
28
{
 
29
    public function setTableDefinition()
 
30
    {
 
31
        $this->setTableName('ag_geo_source_score');
 
32
        $this->hasColumn('id', 'integer', 2, array(
 
33
             'primary' => true,
 
34
             'type' => 'integer',
 
35
             'length' => 2,
 
36
             ));
 
37
        $this->hasColumn('geo_source_score', 'string', 32, array(
 
38
             'type' => 'string',
 
39
             'notnull' => true,
 
40
             'length' => 32,
 
41
             ));
 
42
        $this->hasColumn('geo_source_score_value', 'integer', 2, array(
 
43
             'type' => 'integer',
 
44
             'notnull' => true,
 
45
             'length' => 2,
 
46
             ));
 
47
 
 
48
 
 
49
        $this->index('UX_agGeoSourceScore', array(
 
50
             'fields' => 
 
51
             array(
 
52
              0 => 'geo_source_score',
 
53
             ),
 
54
             'type' => 'unique',
 
55
             ));
 
56
    }
 
57
 
 
58
    public function setUp()
 
59
    {
 
60
        parent::setUp();
 
61
        $this->hasMany('agGeoSource', array(
 
62
             'local' => 'id',
 
63
             'foreign' => 'geo_source_score_id'));
 
64
 
 
65
        $timestampable0 = new Doctrine_Template_Timestampable();
 
66
        $this->actAs($timestampable0);
 
67
    }
 
68
}
 
 
b'\\ No newline at end of file'