https://github.com/phptuts/baseentitybundle
BaseEntityBundle
https://github.com/phptuts/baseentitybundle
Last synced: 8 months ago
JSON representation
BaseEntityBundle
- Host: GitHub
- URL: https://github.com/phptuts/baseentitybundle
- Owner: phptuts
- Created: 2014-11-24T19:35:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-17T00:21:25.000Z (about 11 years ago)
- Last Synced: 2025-02-24T01:51:49.541Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 219 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Symfony Base Entity Bundle
Installation Instructions
- Run -> composer require noahglaser/entitybundle:1.0.1
- Add NoahGlaser\EntityBundle\NoahGlaserEntityBundle() to your AppKernel under the register function.
- 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