Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend foreign key format in MANY_MANY relation #3015

Closed
nineinchnick opened this issue Nov 6, 2013 · 0 comments
Closed

Extend foreign key format in MANY_MANY relation #3015

nineinchnick opened this issue Nov 6, 2013 · 0 comments

Comments

@nineinchnick
Copy link
Contributor

It should be possible to specify custom primary key matching a foreign key when defining a MANY_MANY relation, that is instead of:

'supervisors' => array(self::MANY_MANY, 'Users', '{{store_supervisor}}(store_id, user_id)'),

do

'supervisors' => array(self::MANY_MANY, 'Users', array('{{store_supervisor}}', 'store_id'=>'store_id', 'user_id'=>'id')),

This change is required by #3018 to enable using 'through' with MANY_MANY relations.

nineinchnick pushed a commit to nineinchnick/yii that referenced this issue Nov 6, 2013
nineinchnick pushed a commit to nineinchnick/yii that referenced this issue Nov 21, 2013
… for a MANY_MANY relation

Conflicts:
	CHANGELOG
@cebe cebe added this to the 1.1.17 milestone Aug 15, 2014
@samdark samdark closed this as completed Nov 17, 2015
mozarcik pushed a commit to mozarcik/yii that referenced this issue Jan 20, 2020
… for a MANY_MANY relation

Conflicts:
	CHANGELOG
mozarcik added a commit to mozarcik/yii that referenced this issue Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants