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

Fixed not accepting multiple args in relationships #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed not accepting multiple args in relationships #8

wants to merge 1 commit into from

Conversation

sorora
Copy link
Contributor

@sorora sorora commented Jun 1, 2013

A fix for the issue of it currently not likely when relationships have more than one argument defined (e.g. belongsTo('table', 'key') would fail the validation).

This fix checks how many arguments the parameter provides, and then does the check to see if the "model" bit matches the expected, while just providing the normal arguments back as is.

A fix for the issue of it currently not likely when relationships have more than one argument defined (e.g. belongsTo('table', 'key') would fail the validation).

This fix checks how many arguments the parameter provides, and then does the check to see if the "model" bit matches the expected, while just providing the normal arguments back as is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant