| 1 | <?php |
||
| 3 | class TypeUser extends \Phalcon\Mvc\Model |
||
|
|
|||
| 4 | { |
||
| 5 | |||
| 6 | /** |
||
| 7 | * |
||
| 8 | * @var integer |
||
| 9 | */ |
||
| 10 | protected $id; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $libelle; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Method to set the value of field id |
||
| 20 | * |
||
| 21 | * @param integer $id |
||
| 22 | * @return $this |
||
| 23 | */ |
||
| 24 | public function setId($id) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Method to set the value of field objet |
||
| 33 | * |
||
| 34 | * @param string $objet |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | public function setLibelle($libelle) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Returns the value of field id |
||
| 46 | * |
||
| 47 | * @return integer |
||
| 48 | */ |
||
| 49 | public function getId() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Returns the value of field objet |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getLibelle() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Initialize method for model. |
||
| 66 | */ |
||
| 67 | public function initialize() |
||
| 72 | |||
| 73 | /** |
||
| 74 | * Returns table name mapped in the model. |
||
| 75 | * |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | public function getSource() |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Allows to query a set of records that match the specified conditions |
||
| 85 | * |
||
| 86 | * @param mixed $parameters |
||
| 87 | * @return TypeUser[] |
||
| 88 | */ |
||
| 89 | public static function find($parameters = null) |
||
| 93 | |||
| 94 | /** |
||
| 95 | * Allows to query the first record that match the specified conditions |
||
| 96 | * |
||
| 97 | * @param mixed $parameters |
||
| 98 | * @return TypeUser |
||
| 99 | */ |
||
| 100 | public static function findFirst($parameters = null) |
||
| 104 | |||
| 105 | public function toString() { |
||
| 108 | |||
| 109 | } |
||
| 110 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.