- Removed the toArray function in the entity
- Removed the persist method and used the insert and update instead
- Removed custom column and table names in the doctrine entity
- Fix some code styling