Skip to content

STI dump seems incorrect #11

@asgrim

Description

@asgrim

We have two separate STI relationships:
abstract class Sanction, with various children, one of which is class Roadworthiness extends Sanction
and
abstract class ChecksiteLocation, with two children Temporary and Permanent

The data looks correct in the DB, but when dumping the fixtures I encounter an odd issue with each of them:

  • the Sanction entity is written directly, and the Roadworthiness entity is not generated at all in the fixtures
  • the Temporary and Permanent entities are written fine, but an additional ChecksiteLocation entity (with duplicated data that already exists in one of Temporary or `Permanent) is generated

I have a feeling these issues are related, but I can't quite put my finger on it. It seems to me that:

  • the Roadworthiness entity is not actually being written properly (not sure why)
  • the ChecksiteLocation entity is making it past the check in ORMDumper on Line 25 if (!$class->getReflectionClass()->isInstantiable() || $class->isMappedSuperclass) {

Do you have any ideas what might be causing this strange behaviour?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions