Skip to content
New issue

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

Property Names #1

Open
bajb opened this issue Oct 14, 2014 · 1 comment
Open

Property Names #1

bajb opened this issue Oct 14, 2014 · 1 comment

Comments

@bajb
Copy link
Member

bajb commented Oct 14, 2014

Allow property > underscores or custom per field

@TomK
Copy link
Member

TomK commented Nov 11, 2019

/**
  @fieldName my_property
**/
public $myProperty;

OR

protected $_fieldNameMap = ['myProperty' => 'my_property'];
public function getFieldNameForProperty($propertyName)
{
  return $this->_fieldNameMap[$propertyName] ?? $propertyName;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants