Advertisement
Guest User

Untitled

a guest
Jun 4th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. class Clientcontactstype extends \Phalcon\Mvc\Model
  2. {
  3.  
  4.     /**
  5.      *
  6.      * @var integer
  7.      */
  8.     public $id;
  9.      
  10.     /**
  11.      *
  12.      * @var integer
  13.      */
  14.     public $client;
  15.      
  16.     /**
  17.      *
  18.      * @var string
  19.      */
  20.     public $name;
  21.      
  22.     /**
  23.      *
  24.      * @var string
  25.      */
  26.     public $description;
  27.      
  28.     /**
  29.      * Initialize method for model.
  30.      */
  31.     public function initialize()
  32.     {
  33.         $this->hasMany("id", "Clientcontacts", "type", NULL);
  34.         $this->belongsTo("client", "Client", "id", array("foreignKey"=>true));
  35.  
  36.     }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement