Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Possible column types for model annotations?

Hi,

I was wondering which column types are available for annotations in models? The demo code at https://github.com/phalcon/tutorial-models-init/blob/master/library/AnnotationsMetaDataInitializer.php only uses Column::TYPE_INTEGER and Column::TYPE_VARCHAR, but I assume any of the Phalcon\Db\Column constants can be used here (http://docs.phalconphp.com/en/latest/api/Phalcon_Db_Column.html)?

Thank you in advance!



85.4k
Accepted
answer

Yes, there is a better implementation of AnnotationsMetaDataInitializer.php here: https://github.com/phalcon/biko/blob/master/library/Biko/Mapper/AnnotationsMetaDataInitializer.php



2.0k

Great, thank you Andres!