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.

eZ debug

Timing: Jan 30 2025 21:45:00
Script start
Timing: Jan 30 2025 21:45:00
Module start 'layout'
Timing: Jan 30 2025 21:45:00
Module start 'content'
Timing: Jan 30 2025 21:45:00
Module end 'content'
Timing: Jan 30 2025 21:45:00
Script end

Main resources:

Total runtime0.0209 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.0156151.1953
Module start 'layout' 0.00460.0042 739.2109220.6719
Module start 'content' 0.00880.0107 959.88281,001.7734
Module end 'content' 0.01950.0013 1,961.656333.9922
Script end 0.0208  1,995.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002612.2173140.0002
Check MTime0.00115.3274140.0001
Mysql Total
Database connection0.00052.563210.0005
Mysqli_queries0.002712.695930.0009
Looping result0.00000.057110.0000
Template Total0.00104.810.0010
Template load0.00083.607210.0008
Template processing0.00021.139910.0002
Override
Cache load0.00052.482110.0005
General
dbfile0.00021.139980.0000
String conversion0.00000.037740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs