Foreign key for TYPO3 Frontend user
How to set ExternalKey to TYPO3 FrontendUsers in Extension Builder?
Do I need to install the parameter map into an existing table? or make an attitude?
What I want to do:
I have a model (people) with its own fields and values. and now I want a new release between this model and TYPO3 FE users
PeopleNr = fe_user with uid 123
source to share
Note: As stated in another question , creating relationships between tables / models does not require adding foreign keys
I'm not really sure what you need it for, but here is a description of the two most common cases (screenshot shows how to achieve each case using the Extension Builder)
Creating a relationship to FrontendUser
model / fe_user
table
In TYPO3 ver. 6.2 fe_user
also has a model:, \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
you can just add this as a general relation in the Modeling Builder tool (Figure 2 in the screenshot) in the box \Fully\Qualified\Classname
(you need to Show advanced fields
set it (Figure 1) use this FrontendUser
one and it will generate the correct definitions SQL
and TCA
.
Real Expandable Model FrontendUser
(FU)
On the other hand, if your model People
* just extends the table fe_user
because you want to reuse the existing fe_user table for your people, you can also extend the FrontendUser
model to real (Figure 3), in which case you inherit all getters, setters from FU, and etc. and you won't have to write them yourself.
In this case, your model will be a separate type fe_user
, the default discriminator field is:, tx_extbase_type
and the builder will add a new type of typeTx_YourExt_Employee
*
Note: for model names, you must use the special form ie Man
instead ofPeople
source to share