Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Alias'd fieldnames
  • Hello. I want to write a client side API using Fuel, and it seems to be capable of the job, however, I don't want to expose the real fieldnames to the user, because some of the names really do not correlate to what they are for. So anyway I am using the ORM and the protected static $_properties method of outlining the fields. Is there an array key that would allow me to have these fields named something else for the queries, etc? Does that make any sense? Thanks, Chris
  • The ORM isn't really meant to be used as a query builder, so it doesn't have features like this. For this purpose I would stick to using DB calls.
  • So the concept of a protected variable name masking a field (ala Doctrine ORM) isn't available? Ignore the query builder stuff, just want to know that.
  • Not at the moment, no.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion