I think the standard practice for table names in MySQL is to use plural names.
Classes referencing these tables should also be plural?
For example, imagine you have a table called "Users" that is used for authentication purposes.
This table will be described in an entity class in a more or less similar way using the ORM doctrine:
namespace Company\BlogBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
class Users
{
protected $userId;
protected $userName;
...
}
Is it correct?
Or should the "Users" class be named in the singular ("User")?
source
share