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

annotations and null values

hi,

I need declare a attribute whit nullable=true explicitly?

there is no way to set it as default?

ex:


<?php

    // if I not delclare nullable=true, all inserts/updates in this model fails
    /**
     * @Column(type="string", length=100)
     */
    protected $attrib;

sorry for my english



4.0k

Column allow NULL value in database?