Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Node.php (model)
- (...)
- public function find()
- {
- parent::find();
- if ($this->loaded())
- {
- // `get_fields()` loads associated fields.
- $this->custom_fields = $this->get_fields();
- }
- return $this;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement