I have promotions owned by a user
and associated with other users.

The Add screen gives a Select control for selecting the owner and a 
multi-select for selecting the associated users.

In PromotionsTable::
public function initialize(array $config) {
$this->table('promotions');
$this->displayField('name');
$this->primaryKey('id');

$this->belongsTo('Users', [
'foreignKey' => 'user_id',
]);
$this->belongsToMany('Users', [
'foreignKey' => 'promotion_id',
'targetForeignKey' => 'user_id',
'joinTable' => 'promotions_users',
]);
}

Data saves fine if the security component is not loaded...
black holes the request otherwise...
Is this a bug or is this by design?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to