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

Abstract parent class #9

Open
ThibaudDauce opened this issue Jul 30, 2014 · 0 comments
Open

Abstract parent class #9

ThibaudDauce opened this issue Jul 30, 2014 · 0 comments
Labels

Comments

@ThibaudDauce
Copy link
Owner

If my parent class is abstract, I can't do ParentClass::all() because Eloquent try to instanciate a new object in order to create a new query:

public static function all($columns = array('*'))
{
    $instance = new static;
    return $instance->newQuery()->get($columns);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant