We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Should be possible in 2 ways:
$query->select('name', 'city'); // only select name & city $query->select(array('last_name' => false)); // selects every column except "last_name"
When a model is gotten like this all other fields will not be available.
First thoughts:
__set()
__get()
The text was updated successfully, but these errors were encountered:
what about 'select' => array('name', 'city') in find?
example:
Model_User::find('first', array( 'select' => array( 'name', 'city' ), 'where' => array( array( 'active', '=', 1 ), ), ));
its only idea.. is not necessarily
Sorry, something went wrong.
Everything Orm::Query::select() can do, can also be done by the array usage from the Model::find() method.
wow!
selecting specific fields, may make the code longer especially with relationships. maybe create a skip() method ?
->skip(array('user.password', 'list.content'));
Try reading the original proposal before suggesting something that's already there.
df62d11
No branches or pull requests
Should be possible in 2 ways:
When a model is gotten like this all other fields will not be available.
First thoughts:
__set()
/__get()
can't use Model::properties() anymoreThe text was updated successfully, but these errors were encountered: