~tsep-dev/tsep/tsep2

« back to all changes in this revision

Viewing changes to src/TSEP/Bundle/SearchBundle/Entity/Search.php

  • Committer: xaav
  • Date: 2011-09-27 01:31:36 UTC
  • Revision ID: git-v1:3c3f2e8d21ccd506f3cd12b2650591f6532368fb
First commit'

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
namespace TSEP\Bundle\SearchBundle\Entity;
 
3
 
 
4
use Doctrine\ORM\Mapping as ORM;
 
5
 
 
6
/**
 
7
 * @ORM\Entity
 
8
 */
 
9
class Search {
 
10
 
 
11
        /**
 
12
         * @ORM\Id
 
13
         * @ORM\Column(type="integer")
 
14
         * @ORM\GeneratedValue(strategy="AUTO")
 
15
         */
 
16
         protected $id;
 
17
 
 
18
        /**
 
19
         * @ORM\Column(type="string", length="255")
 
20
         */
 
21
        protected $query;
 
22
 
 
23
 
 
24
    /**
 
25
     *@ORM\ManyToOne(targetEntity="Profile", inversedBy="Search")
 
26
     */
 
27
    protected $profile;
 
28
 
 
29
    /**
 
30
     * Get id
 
31
     *
 
32
     * @return integer $id
 
33
     */
 
34
    public function getId()
 
35
    {
 
36
        return $this->id;
 
37
    }
 
38
 
 
39
    /**
 
40
     * Set profile
 
41
     *
 
42
     * @param TSEP\Bundle\SearchBundle\Entity\Profile $profile
 
43
     */
 
44
    public function setProfile(\TSEP\Bundle\SearchBundle\Entity\Profile $profile)
 
45
    {
 
46
        $this->profile = $profile;
 
47
    }
 
48
 
 
49
    /**
 
50
     * Get profile
 
51
     *
 
52
     * @return TSEP\Bundle\SearchBundle\Entity\Profile $profile
 
53
     */
 
54
    public function getProfile()
 
55
    {
 
56
        return $this->profile;
 
57
    }
 
58
 
 
59
    /**
 
60
     * Set query
 
61
     *
 
62
     * @param string $query
 
63
     */
 
64
    public function setQuery($query)
 
65
    {
 
66
        $this->query = $query;
 
67
    }
 
68
 
 
69
    /**
 
70
     * Get query
 
71
     *
 
72
     * @return string $query
 
73
     */
 
74
    public function getQuery()
 
75
    {
 
76
        return $this->query;
 
77
    }
 
78
}
 
 
b'\\ No newline at end of file'