lamoda / php-metrics

PHP metric responder and storage abstraction library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

doctrine:schema:validate reports error

HaiD84 opened this issue · comments

Using bundle with Symfony 4:

$ ./bin/console doctrine:schema:validate

Mapping
-------

 [FAIL] The entity-class Lamoda\MetricBundle\Entity\MetricGroup mapping is invalid:
 * The target entity 'Lamoda\MetricResponder\MetricInterface' specified on Lamoda\MetricBundle\Entity\MetricGroup#metrics is unknown or not an entity.

@HaiD84 You have to point doctrine how to resolve MetricInterface into final entity as it's possible to use custom entitiies with built-in group and vice-versa

See the docs for reference

http://symfony.com/doc/current/doctrine/resolve_target_entity.html

We are going to cancel supporting groups in favour of dynamic metric grouping, i.e by tags, since not every format supports grouping and tags are first level citizen here (#1)

commented

And this is correct decision, voting for it

As for 2.0 metric doctrine entity implemnation if up to end user, so there is nothing to do with schema validation