@Omegote, try :
$annotations = \Gas\Core::identify_annotation(self::$fields['annotations']); print_r($annotations);
Nice, thanks. At the end the code I used was:
// Name of my model
$model_name = "Model\\" . "Book";
// Init to populate the model fields
$model_name::_init();
// Get the type of each field
foreach ($model_name::$fields as $field_name => $field_details)
{
$parsed_annotations = \Gas\Core::identify_annotation($field_details['annotations']);
echo "The field {$field_name} has type {$parsed_annotations['type']}";
}That “identify_annotation” function was very helpful, and there seems to be other similar functions in Core.php. Is there any documentation for these other than the inline doc?