[TYPO3-mvc] How to extend existing tables with ExtBase?

Robert Böttner robert at boettner.it
Wed Dec 23 14:43:34 CET 2009


Hi David,

just define the user class in your model EXT:Classes/Domain/Model/Member.php:

/**
 * 
 *
 * @version $Id$
 * @copyright Copyright belongs to the respective authors
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
 * @scope prototype
 * @entity
 */
class Tx_Mmfrrmarket_Domain_Model_Member extends Tx_Extbase_Domain_Model_FrontendUser {
}

(Not sure about the capital letters in your ext key, but I think you know where to set them)

Cheers
Robert.

Am 23.12.2009 um 14:29 schrieb David Schreiber:

> Hello,
> 
> After some tryouts with my first ExtBase extension, I came to the 
> conclusion it would be best to extend an already existing TYPO3 table 
> (namely fe_users).
> 
> Like I thought, now I get following error message when accessing my 
> plugin in the frontend:
> 
> "Table 'rrmarket_01.tx_mmfrrmarket_domain_model_member' doesn't exist"
> 
> This is because my model is called Member, but the table which should be 
> used is fe_users. Is it possible to use existing tables with ExtBase so 
> that I can easily extend fe_users, or do I need to create a separate 
> table and do some kind of complicated "linking" between my table and the 
> fe_users?
> 
> Thank you very much,
> David Schreiber
> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc

--
boettner.it - Informationstechnologie
Robert Böttner
Lederstraße 120
72764 Reutlingen

07121-6959493 fon
07121-6959492 fax
0178-4106319  mobil

http://www.boettner.it



More information about the TYPO3-project-typo3v4mvc mailing list