Advertisement
Guest User

Untitled

a guest
Mar 24th, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Node.php (model)
  2.  
  3. (...)
  4.  
  5. public function find()
  6. {
  7.     parent::find();
  8.  
  9.     if ($this->loaded())
  10.     {
  11.         // `get_fields()` loads associated fields.
  12.         $this->custom_fields = $this->get_fields();
  13.     }
  14.  
  15.     return $this;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement