Giter Club home page Giter Club logo

Comments (6)

hackzilla avatar hackzilla commented on July 18, 2024 2

@RootProgger @Exellent1988 I'll have at this.
Is this a project that you are currently using or want to use?

@phansys I'll have a look at see if this is a quick win.

from ticketbundle.

Exellent1988 avatar Exellent1988 commented on July 18, 2024

symfony 5.4 has a conflict with the symfony -console version which is 5.3 atm. so i can't install the packadge. is there any progress regarding the 5.x implementation?

from ticketbundle.

phansys avatar phansys commented on July 18, 2024

IIRC, there was a blocker around Twig and some other packages. But feel free to ping me if you need support with this task 👍

from ticketbundle.

Exellent1988 avatar Exellent1988 commented on July 18, 2024

@RootProgger @Exellent1988 I'll have at this. Is this a project that you are currently using or want to use?

@phansys I'll have a look at see if this is a quick win.

I'll would love to use the bundle in our project. at least i was looking for a solution which is allready to use, instead of coding it all by myself.

from ticketbundle.

hackzilla avatar hackzilla commented on July 18, 2024

@phansys I think I've got it working, with the exception of doctrine mapping.
https://github.com/hackzilla-project/TicketBundleDemoApp/tree/v4

The issue I'm facing is with the mapped-superclass definition for the associations.
Specifically inversed-by.

  <mapped-superclass name="Hackzilla\Bundle\TicketBundle\Model\TicketMessageWithAttachment">
   ...
    <many-to-one field="ticket" target-entity="Ticket" inversed-by="messages">
      <join-column name="ticket_id" referenced-column-name="id" />
    </many-to-one>
  </mapped-superclass>

With inversed-by it throws invalid mapping.

Mapping
-------

 [FAIL] The entity-class App\Entity\TicketMessageWithAttachment mapping is invalid:
 * The association App\Entity\TicketMessageWithAttachment#ticket refers to the inverse side field Hackzilla\Bundle\TicketBundle\Model\Ticket#messages which does not exist.


 [FAIL] The entity-class Hackzilla\Bundle\TicketBundle\Model\TicketMessageWithAttachment mapping is invalid:
 * The association Hackzilla\Bundle\TicketBundle\Model\TicketMessageWithAttachment#ticket refers to the inverse side field Hackzilla\Bundle\TicketBundle\Model\Ticket#messages which does not exist.

Without inversed-by it appears to work but you cannot retrieve the ticket messages.

It's seems like it wants the inverse relationship to be setup on the Ticket, like so.

<one-to-many field="messages" target-entity="Hackzilla\Bundle\TicketBundle\Model\TicketMessageWithAttachment" mapped-by="ticket" />

However, that throws an illegal message.

In MappingException.php line 644:
                                                                                                                                                            
  It is illegal to put an inverse side one-to-many or many-to-many association on mapped superclass 'Hackzilla\Bundle\TicketBundle\Model\Ticket#messages'.  

I am at a loss.

from ticketbundle.

hackzilla avatar hackzilla commented on July 18, 2024

v4 is close to release now, with Symfony 5 support.

from ticketbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.