field naming PSR

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1476

    field naming PSR

    Hello,

    when we create a field .. we create so : myNumber
    in the database, the column is : my_number

    which is the function I can use for this :

    sample :
    I have a string : "my_number"
    my field name is : myNumber

    Then I will use out-of-box function for ORM.
    $entity->get('myNumber');

    $entity->get(outOfBoxFunction('my_number'));

    Best regards
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
Working...