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

Address field in Drupal 8 #533

Closed
miiimooo opened this issue Apr 4, 2019 · 1 comment
Closed

Address field in Drupal 8 #533

miiimooo opened this issue Apr 4, 2019 · 1 comment

Comments

@miiimooo
Copy link

miiimooo commented Apr 4, 2019

I'm trying to create a profile entity with an address field like this:

    $this->parseEntityFields('profile', $profile);
    $saved = $this->getDriver()->createEntity('profile', $profile);

And the address field in my feature looks like this:

country: SE - locality: Stockholm - postal_code: 411 16 - thoroughfare: Maria Bangata 4a - given_name: Fridolin - last_name: Hase 

But since upgrading and now using the AddressHandler it breaks with:

Notice: Undefined index: field_overrides in /app/vendor/drupal/drupal-driver/src/Drupal/Driver/Fields/Drupal8/AddressHandler.php line 15

I get another issue when I copy and paste the example in https://github.com/jhedstrom/drupalextension/blob/master/features/field_handlers.feature#L16

Notice: Undefined offset: 0 in /app/vendor/drupal/drupal-driver/src/Drupal/Driver/Fields/Drupal8/AddressHandler.php line 54

Address is v1.4.0
Drupal extension v4.0.0beta2

@miiimooo miiimooo closed this as completed Apr 5, 2019
@miiimooo
Copy link
Author

miiimooo commented Apr 5, 2019

Moved to jhedstrom/DrupalDriver#206

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

No branches or pull requests

1 participant