php - "Map to existing tables" in Extension builder showing weird issues in TYPO3 -
in extension myext
, mapped model page
pages
table in typo3. firstly shows me type mismatch
error, anyhow went ahead , saved it.
the following things happen:
- my page tree becomes this:
- my new record form shows uids , not titles:
- my page edit becomes this:
in myext/configuration/typoscript/setup.txt
have this:
config.tx_extbase.persistence.classes { tx_myext_domain_model_page { mapping { tablename = pages } } }
is bug ? or i'm doing wrong ?
this /domain/model/page.php
, glimpse of it.
class page extends \typo3\cms\extbase\domainobject\abstractentity { /** * uid * @var int * @validate notempty */ protected $uid; /** * title * @var string * @validate notempty */ protected $title; /** * __construct * * @return page */ public function __construct() { //do not remove next line: break functionality $this->initstorageobjects(); } /** * returns title * * @return string $title */ public function gettitle(){ return $this->title; } }
my /domain/repository/pagerepository.php
class pagerepository extends \typo3\cms\extbase\persistence\repository { }
just delete whole $tca['pages']
section file my_ext/ext_tables.php
, or comment out.
if set, overrides default tca settings typo3 core values extension. don't need custom settings that.
Comments
Post a Comment