Skip to content

phptuts/BaseEntityBundle

Repository files navigation

Symfony Base Entity Bundle

Installation Instructions

  1. Run -> composer require noahglaser/entitybundle:1.0.1
  2. Add NoahGlaser\EntityBundle\NoahGlaserEntityBundle() to your AppKernel under the register function.
  3. Then just entend the Base and User entity classes

This bundle contains two entities. One is a base entity which is abstract class that you can use for all entities. It has a primary key with column name id that auto increments. The we have createdAt and updateAt which use lifecycle callbacks to update the entity everytime is it peristed or updated

The next entity is the user entity that implements the AdvancedUserInterface and allows you to quickly build a user class that will allow you to quickly build an authenicated system.

Right now it passing all the phpspecs