Re: How can I get the user firstname displayed, instead of the User_id

2016-04-05 Thread Clement Crownrise
*How many tables do you have? *1 table for users, another for profile, another for proposal, another for comment, making 4 in total *And if a first name is a property of a user, why would you put it in the profiles table and not in the users? * Users table is tied to profile table, a profile

Re: How can I get the user firstname displayed, instead of the User_id

2016-04-05 Thread heavyKevy
How many tables do you have? And if a first name is a property of a user, why would you put it in the profiles table and not in the users? Which version of Cake are you using? If I understand you correctly, you are saying you have a user that has a profile and a user has many proposals. If that

Re: How can I get the user firstname displayed, instead of the User_id

2016-04-05 Thread Clement Crownrise
Thanks for your response, do you mean i should create a relationship between the proposal and the user table? will creating a proposal "belongs to user AND a User has many Proposal", fix this problem? As for containable behavior, please what do you mean ? Your quick response would be

CakePHP 3 - ConnectionManager::config and persisting connection configuration.

2016-04-05 Thread Luuk Honings
Hi, I have a need to, in addition to the default DB connection (from app.php) , add another DB connection specific to the client. Ie every client ends up with 2 connections and depending on where data needs to be retrieved from, the app sets the defaultConnectionName() in the relevant Table