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.

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.



23.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 :)