Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
633 stars 199 forks source link

Specifying A Select Clause #208

Closed hsalem7 closed 4 years ago

hsalem7 commented 7 years ago

Hello guys,

I am using NeoEloquent v- 1.3 with Laravel 5.3

I was trying User::select('email as user_email')->get()->toArray();

but the result was:

[
    'email as user_email' => 'h.salem7788@gmail.com'
]

expected results:

[
    'user_email' => 'h.salem7788@gmail.com'
]

also, another problem was when I was trying User::get(['email'])->toArray(); or User::all(['email'])->toArray()

the result is:

[
    '' => 'h.salem7788@gmail.com'
]

expected

[
    'email' => 'h.salem7788@gmail.com'
]
Mulkave commented 6 years ago

Can you please confirm whether this is still valid? Updates have been pushed since.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.