[FLOW3-general] mapping problem

Wasko Jugovic mailtestler at web.de
Fri Apr 20 10:43:34 CEST 2012


Hi,

I defined a customized table name and  primary-key in my model. When I 
execute indexAction I get an "Error 500".
Exceptions log says:
Uncaught exception #42S02 in line 633 of 
/var/www/Base/Packages/Framework/Doctrine.DBAL/Classes/Connection.php: 
SQLSTATE[42S02]: Base table or view not found: 1146 Table 
'ko_f3.wl_koadmin_domain_model_gemeinde' doesn't exist

As you can see,  the default table name instead of customized name is used. 
What is missing or what did I wrong?
By the way what are the disadvantages by using custom primary-keys in FLOW3?

THX!


This is my model:

<?php
namespace WL\KoAdmin\Domain\Model;
/*                                                                        *
 * This script belongs to the FLOW3 package "WL.KoAdmin".             *
 *                                                                        *
 *                                                                        */
use TYPO3\FLOW3\Annotations as FLOW3;

/**
 * A Gemeinde
 *
 * @FLOW3\Entity
 * @ORM\Table(name="gemeinden")
 */
class Gemeinde {


 /**
  * @var integer
  * My Primary-key
  * @ORM\id
  * @ORM\Column(name="idnr")
  * @ORM\GeneratedValue
  */
 protected $idnr;
...............





More information about the FLOW3-general mailing list