Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Any workaround for using underscore in classname?

Hi There,

I'm new to phalcon, I'm having one of my project developed in ember and html5 and I want to migrate it in phalcon. Now the issue is losts of my table name contains underscore in it and I can't affort renaming them. So is there any workaround to get things working?



6.3k
Accepted
answer

class MyModel extends PhalconModel {
    public function getSource() {
        return 'my_model_table_name';
    }
}


671

Thanx Oscar, it works :)


class MyModel extends PhalconModel {
  public function getSource() {
      return 'my_model_table_name';
  }
}