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

Added full support for Eloquent's relationship methods with tests. #14

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

rand0mb1ts
Copy link
Contributor

All parameters for the 4 standard eloquent relationship methods are supported.

Added 13 tests for the relationship assertion methods.

Update:
I added the ability to use the QueryBuilder methods. Example:

public function posts() {
return $this->hasMany('Post')->where('post_id', '<', 100)->take(10);
}

Please note, only the relationship is tested. As of now you cannot test the inputs to the QueryBuilder methods.

@binarix
Copy link

binarix commented Jun 11, 2013

+1

…thods. Chained method names are not validated or limited so be careful. Test was added as well.
… relationship method call. Added Illuminate/Database to composer.json
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.

None yet

3 participants