Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

How to alias feild in silverstripe?


Reply


2 Posts   320 Views

Avatar
anudeepgi

Community Member, 11 Posts

30 January 2014 at 6:32pm

Hi anyone can give me querying in silverstripe making feild alias, please thanx in Advance

Avatar
Willr

Forum Moderator, 5513 Posts

3 February 2014 at 6:44pm

Alias? As in a database alias? If you're using the ORM you cannot alias the query fields. If you're using a direct DB query (such as DB::query()) you can alias it however your RDBMS does as this will simply return you an array of data.