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.

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



36.3k
Accepted
answer

Phalcon support ORM very good . The code above will working

Phalcon support ORM very good . The code above will working

Okay. Thanks