Note that there are some explanatory texts on larger screens.

plurals
  1. PO"Map to existing tables" in Extension builder showing weird issues in TYPO3
    primarykey
    data
    text
    <p>In my extension <code>MyExt</code>, I mapped the model <code>Page</code> to <code>pages</code> table in TYPO3. Firstly it shows me the <code>type mismatch</code> error, I anyhow went ahead and saved it. </p> <p>The following things happen: </p> <ul> <li>My Page tree becomes like this:</li> </ul> <p><img src="https://i.stack.imgur.com/3r13Q.png" alt="enter image description here"></p> <ul> <li>My New Record Form shows only the UIDs and not the titles:</li> </ul> <p><img src="https://i.stack.imgur.com/0vhW1.png" alt="enter image description here"></p> <ul> <li>My Page Edit becomes like this: <img src="https://i.stack.imgur.com/FdSh0.png" alt="enter image description here"></li> </ul> <p>In my <code>MyExt/Configuration/TypoScript/setup.txt</code> I have this:</p> <pre><code>config.tx_extbase.persistence.classes { Tx_MyExt_Domain_Model_Page { mapping { tableName = pages } } } </code></pre> <p>Is this a bug ? Or something i'm doing wrong ?</p> <p>This is my <code>/Domain/Model/Page.php</code> , just a glimpse of it. </p> <pre><code>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 the next line: It would break the functionality $this-&gt;initStorageObjects(); } /** * Returns the title * * @return string $title */ public function getTitle(){ return $this-&gt;title; } } </code></pre> <p>My <code>/Domain/Repository/PageRepository.php</code> is </p> <pre><code>class PageRepository extends \TYPO3\CMS\Extbase\Persistence\Repository { } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload