Re: CakePHP 3-tier

2015-03-13 Thread Matt Myers
The added security is in that the Presentation layer is what is exposed to the world and is more vulnerable. In the event that the Presentation layer is hacked, it would not have access to the Database layer. There is added security in front of the Application layer (which has access to the Dat

Re: belongsTo custom condition not working

2015-01-08 Thread Matt Myers
'className' => 'Person', 'joinTable' => 'person_follows', 'foreignKey' => 'table_id', 'associationForeignKey' => 'id', 'conditions' => array('PersonFollow.table_nam

Re: belongsTo custom condition not working

2015-01-07 Thread Matt Myers
John, I have another similar challenge I’m working on and I thought you may be able to help. Here’s my stackoverflow: http://stackoverflow.com/questions/27826627/cakephp-use-both-foreignkey-and-conditions-in-hasmany Any help would be appreciated. Thanks. — Matt -- Matt Myers Sent with

Re: belongsTo custom condition not working

2014-10-16 Thread Matt Myers
Thanks John! This looks great. I'll give it a try. -- Matt On Wednesday, October 15, 2014 12:35:40 PM UTC-6, John Andersen wrote: > > Hi Matt > > Created a test setup and got the result you wanted by defining each model > as follows: > > class LinkedinPerson extends AppModel { > public $has

Re: belongsTo custom condition not working

2014-10-14 Thread Matt Myers
akePHP are you using? > > Kind regards > John > > On Monday, 13 October 2014 22:09:11 UTC+3, Matt Myers wrote: >> >> // in LinkedinPerson >> public $hasMany = array( >> 'LinkedinRecommendation' => array( >> 'className

belongsTo custom condition not working

2014-10-13 Thread Matt Myers
// in LinkedinPerson public $hasMany = array( 'LinkedinRecommendation' => array( 'className' => 'LinkedinRecommendation', 'foreignKey' => false, 'dependent' => true, ), ) // in LinkedinRecommendation public $belongsTo = array( 'LinkedinPerson' => array(

Auth Component

2014-06-27 Thread Matt Myers
I've been hitting my head over this for quite some time now. When I login using the Auth Component as such: $this->Auth->login() It will login just fine and define the following authUser: User User.Person User.Company But when I login in another situation like so: $this->Auth->login($user['Us