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

Unable to select Hydrator Service Name after update to Apigility1.3.2 #12

Open
weierophinney opened this issue Dec 31, 2019 · 1 comment

Comments

@weierophinney
Copy link
Contributor

Hi,

Recently started a new project, and was getting an issue with composer being out of date -- something around zfcampus/zf-apigility-admin-ui needing to be 1.2.3 but locked at 1.2.2. Performed composer update to get latest version(s) and updated ok.

However now I'm on zf-apigility-admin-ui 1.2.3 I'm having the following issue, issue doesn't seem to be in zf-apigility-admin-ui 1.2.2.

Clicking on the Hydrator Service Name drop-down makes the drop-down disappear and be replaced with text field.

beforedropdown

afterdropdown

Anything I enter into the field is ignored on save and seems to go back to ArraySerializable.

Mark


Originally posted by @markheydon at zfcampus/zf-apigility-skeleton#122

@weierophinney
Copy link
Contributor Author

Hi Mark,

it is possible to edit the value manually in file located at <ApiName>\config\module.config.php at config key
/../

'zf-hal'=> array(
    'metadata_map' => array(
        <_ApiName_>\\V1\\Rest\\<_ServiceName_>\\<_ServiceName_>Entity => array(
            'hydrator' => 'Zend\\Hydrator\\ObjectProperty'
        ),
    ),
),

/../

Hydrators availabe in previous versions:

  • Zend\Hydrator\ArraySerializable
  • Zend\Hydrator\ClassMethods
  • Zend\Hydrator\ObjectProperty
  • Zend\Hydrator\Reflection

Problem you decribed appears in AbstractPluginManagerModel.php:55 where

$reflClass = new \ReflectionClass($this->pluginManager);
$reflClass->getProperty('invokableClasses')->getValue($this->pluginManager);

returns an empty array


Originally posted by @jamjan at zfcampus/zf-apigility-skeleton#122 (comment)

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