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

What is an "Entity"

Hi there,

I'm working through the Phalcon Form documentation and in there it says

//Set the same form as entity
        $this->setEntity($this);

Could anyone kindly explain what a Phalcon "Entity" is in general and what "Set the same form as entity" in the above context means specifically.

Many thanks.



38.8k
Accepted
answer

Ah, further reading suggests that an "Entity" is an object that the form can bind to access values for its input elements. If there's more to it than that, let me know :)