daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Jun 4th, 2014 17 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top