public function createDefaultFields()
    {
        $fields = Attendee::config()->get('default_fields');
        if (!$this->owner->Fields()->exists()) {
            foreach ($fields as $fieldName => $config) {
                $field = UserField::createDefaultField($fieldName, $config);
                $this->owner->Fields()->add($field);
            }
        }
    }
public function createDefaultFields()
    {
        $fields = Attendee::config()->get('default_fields');
        if (!$this->owner->Fields()->exists()) {
            foreach ($fields as $fieldName => $config) {
                $field = UserField::createDefaultField($fieldName, $config);
                $this->owner->Fields()->add($field);
            }
        }
    }
public function createDefaultFields ( ) { $ fields = Attendee :: config ( ) -> get ( 'default_fields' ) ; if ( ! $ this -> owner -> Fields ( ) -> exists ( ) ) { foreach ( $ fields as $ fieldName => $ config ) { $ field = UserField :: createDefaultField ( $ fieldName , $ config ) ; $ this -> owner -> Fields ( ) -> add ( $ field ) ; } } }
Creates and sets up the default fields
Creates and sets up the default fields