Exemplo n.º 1
0
 /**
  * Alias custom field names
  *
  * {@inheritdoc}
  */
 public function getAttribute($name)
 {
     if (!isset($this->attributes[$name]) && self::$memberFieldRepository->hasField($name)) {
         $name = 'm_field_id_' . self::$memberFieldRepository->getFieldId($name);
     }
     return parent::getAttribute($name);
 }
Exemplo n.º 2
0
 public function testGetFieldId()
 {
     $input = $this->repository->getFieldId('member_country');
     $this->assertEquals(1, $input);
 }