milesj / forum

[Deprecated] A CakePHP plugin for forum / bulletin board systems.
MIT License
131 stars 57 forks source link

missing bindings when User model is inside plugin #28

Closed kminek closed 12 years ago

kminek commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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

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