Skip to content

Conversation

toby-griffiths
Copy link
Contributor

New version of PR #110 for changes rebased onto current master…

I've added the possibility to add the following to a type definition to support operation annotations…

types:
    Person:
        operations:
            item:
                <method>:
                    method: '<method>' # or…
                    router_name: '<route_name>'
                # ...
            collection:
                <method>:
                    method: '<method>' # or…
                    router_name: '<route_name>'
                # ...

This will probably want documenting too, but not got time to do this right now. I've made a reminder to do this if someone else doesn;t get to it before I do.

dunglas and others added 24 commits November 20, 2018 20:44
Properties that are superseded or superseded by a property were both all
created, causing duplicate properties in classes.

For example, property `$award` supersedes `$award` in `CreativeWork`
(https://schema.org/award) but both of these properties were generated
in the class:

```
/**
 * @var string|null an award won by or for this item
 *
 * @Orm\Column(type="text", nullable=true)
 * @ApiProperty(iri="http://schema.org/award")
 */
private $award;

/**
 * @var string|null awards won by or for this item
 *
 * @Orm\Column(type="text", nullable=true)
 */
protected $award;
```

This change uses the property which has been declared as superseding.
… no comma!! Please, consider this fix

Hi!
Ended up with an annotation like @Orm\Column(type="text"unique=true)
No comma!! Please, consider this fix
Fix another phpcs sin, sorry
Ended up with an annotation like @Orm\Column(type="text"unique=true),…
…om-fields

use nullable property for customfields
…mplate-dirs

Add custom twig template dirs
…form#168)

* Composer  update, not install, for tci coverage

Travis CI build for php 7.2 with `coverage=1 lint=1` was failing when executing
`./bin/compile` at the end of the script stage.

Before this command, `composer update` is called which updates the lock
file with dependencies in way which causes namespace errors.

* Adapt e2e files to test expectancies

Builds were still failing after 0411921
because since they started failing a while back, the class files for the
2e2 tests stopped matching the produced classes:

The CI process never reached the point where they were tested.  This commit
adapts the files accordingly.
Setting up a config where a child class inherits its parent's  properties
through class inheritance did not work.

The logic in TypesGenerator handled implicit inheritance based on
whether the parent's properties key was not set or not an array, but did
not account for empty arrays.

Also added tests for these implicit and explicit cases.
Use superseding props over which they supersede
…een-orm-annotation-elements

Fix tests: Put space back after comma between ORM annotation properties
…nheritance

Correct implicit and explicit property inheritance
@dunglas
Copy link
Member

dunglas commented Oct 4, 2019

First of all, sorry for the late reply. Could you rebase it please? It should fix the test.

@toby-griffiths
Copy link
Contributor Author

@dunglas Done!

@dunglas
Copy link
Member

dunglas commented Oct 9, 2019

There is a problem with the rebase isn't it?

@toby-griffiths
Copy link
Contributor Author

toby-griffiths commented Oct 9, 2019

I looked at the log & looks like style issues, which I've corrected. Have I missed something else?

I think all the tests are passing now.

@dunglas
Copy link
Member

dunglas commented Oct 9, 2019

The PR contains 35 commits, it looks weird

@toby-griffiths
Copy link
Contributor Author

Hmmm… OK. Perhaps it's easier if I start again.

@toby-griffiths toby-griffiths deleted the add-support-for-entity-operation-annotations branch October 10, 2019 20:31
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

Successfully merging this pull request may close these issues.

8 participants