This setup is a proof of concept of using Doctrine ORM with TYPO3. It uses the typo3_doctrine_orm
extension to automatically generate TCA and schema based on registered entities.
This was originally built with TYPO3 11.5, it now works with TYPO3 12.4LTS, but it's possible some hacks and DI registrations are not needed anymore.
- Clone this repository
- Run
ddev start
- Run
ddev composer install
- Create a
FIRST_INSTALL
file in thepublic
directory - Visit
typo3/install.php
and install TYPO3 - Make sure you've setup a site with an empty Typoscript root record (typoscript is included with
EXT:sitepackage
) - Place the "Post list" element on the Homepage (or any other page)
- Create a storage folder and add author(s) and post(s)
- Visit the page to see the list and detail view of the posts
This extension is responsible for automatically generating the TCA and schema based on registered entities
This extension has multiple entities which display the working of the functionality:
- Author
- Post
- Comment
- RelatedPage
It contains a PostController
which has a list and show action to display the posts, and an addComment action to add a comment to a post.
There is no ext_tables.sql
or TCA files, everything is generated by the typo3_doctrine_orm
extension.
This extension is a basic sitepackage with a minimal setup to have a working frontend (loads Tailwindcss)