FriendsOfTYPO3 / extension_builder

TYPO3 extension to kickstart and maintain TYPO3 extensions
https://docs.typo3.org/p/friendsoftypo3/extension-builder/11.0/en-us/
GNU General Public License v2.0
111 stars 80 forks source link

SelectProperty invalid type #785

Open instance-pro opened 1 month ago

instance-pro commented 1 month ago

Describe the bug Invalid select field type. In the backend it shows that it is a varchar field. However, an integer field is created in the model.

To Reproduce Steps to reproduce the behavior:

  1. Go to Extension Builder
  2. Click on New Model Object
  3. Create a new Property of type Select
  4. See error in the model after you create the extension

Expected behavior Either an integer or varchar would have to be configurable, currently it is mixed.

Screenshots If applicable, add screenshots to help explain your problem.

TYPO3 Version 12

Extension Builder Version: v12.0.0-beta.2

Additional context affected files: https://github.com/FriendsOfTYPO3/extension_builder/blob/v12.0.0-beta.2/Resources/Private/CodeTemplates/Extbase/Partials/TCA/SelectProperty.phpt https://github.com/FriendsOfTYPO3/extension_builder/blob/v12.0.0-beta.2/Classes/Domain/Model/DomainObject/SelectProperty.php