Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

missing bindings when User model is inside plugin #28

Closed
kminek opened this issue Sep 24, 2012 · 2 comments
Closed

missing bindings when User model is inside plugin #28

kminek opened this issue Sep 24, 2012 · 2 comments

Comments

@kminek
Copy link

kminek commented Sep 24, 2012

i think that user should explictly point to User model in configuration file (ie. Users.User when using plugin) and all relation bindings should be done in model's constructors with this settings. currently i had to manually change hardcoded "User" value in many models relations.

@milesj
Copy link
Owner

milesj commented Sep 24, 2012

Yeah I have thought about this as well but couldn't find an elegant solution besides the constructor. I should probably just go with that approach.

@milesj
Copy link
Owner

milesj commented Oct 3, 2012

You can define a FORUM_USER constant in 3.2.0 to solve this.

http://milesj.me/code/cakephp/forum#user-setup

@milesj milesj closed this as completed Oct 3, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants