Hi, I need to create a custom find() function and overwrite the data based on application logic.
public static function find($parameters=null)
{
$records = parent::find($parameters);
foreach ($records as $record) {
if ($record->parent_id) {
$record->name = '...';
}
}
return $records;
}
This code will not work! Pasted as an explanation.