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

ORM isNew

Phalcon's ORM has something like isNew?

Currently I'm use:

{% if user.getID() %}
    {{ 'Edit user ' ~ user.name }}
{% else %}
    {{ 'New user' }}
{% endif %}

but not sure that it is correct.

Phalcon 1.3.x please.

Thanks



58.4k
Accepted
answer

Phalcon support ORM very good . The code above will working

Phalcon support ORM very good . The code above will working

Okay. Thanks