# Node.php (model)
(
...
)
public
function
find
(
)
{
parent
::
find
(
)
;
if
(
$this
->
loaded
(
)
)
{
// `get_fields()` loads associated fields.
$this
->
custom_fields
=
$this
->
get_fields
(
)
;
}
return
$this
;
}