We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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 (https://docs.phalcon.io/en/latest/api/Phalcon_Db_Column.html)?

Thank you in advance!



98.9k
Accepted
answer

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



3.1k

Great, thank you Andres!