extend User Class

Author Message

Joël LEGER

Tuesday 25 August 2009 6:28:52 am

Hi,

i try to figure out what would be the best solution for my project .
I have to extend the User Class with more attributes and connect to another class (Domain).
The physical model should be like this :

User Class :
User->userId (primary key)
User->name
(my other attributes)
city
address
...

Domain Class :
Domain -> domainId (primary key)
Domain-> title

And 1 User can be appart of 1 to n Domain

Any ideas ?

Damien Pobel

Wednesday 26 August 2009 1:08:14 am

Hi jo,

Your class Domain looks like a "User Group". If a user can be in many domains you can use multi locations feature [1] of eZ Publish.

[1] http://ez.no/doc/ez_publish/technical_manual/4_x/concepts_and_basics/content_management/the_content_node_tree#eztoc86583_1

Cheers.

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Joël LEGER

Monday 31 August 2009 2:55:02 am

Thanks Damien for you feedback.

There is a sensitive problem :
There is data in the ezdbfile_data that i can't remove , do you think if i export data , remove the table, create the table with the constraint and import data again will be ok ?

André R.

Monday 31 August 2009 3:18:55 am

@Jo: please post new questions in new posts!

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Joël LEGER

Monday 31 August 2009 6:58:33 am

Sorry Andre
it's a mistake i mixed with another post

...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.