what are entity classes in php
entity, php
Solution
To expand on the comments above:
Your application models a real-world scenario, which will include a number of entities. The example entity you give is an Administrator; this entity likely inherits properties from a more general User entity.
Entity classes, then, are simply classes that represent your real-world entities:
class User {}
class Administrator extends User {}
An entity class only differs from a normal class in its semantic significance; a `Controller` class would probably not be an entity class, as it's part of the application framework rather than representing a real-world concept.
How your entity classes interact will likely be closely related to how your actual entities interact, so the relationships between entity classes (inheritance/association) will mirror your Entity Relationship Diagram.
Problem
I'm currently learning MVC as it pertains to php and I came across something called an entity class, but cannot for the life of me find a clear explanation and/or an example of it. I thought it was a class that held the data from a database that the model retrieved and is then passed to a view, but i have this nagging feeling that I'm way off. Can someone please explain it via an example or point me in the right direction?