Comments (6)
@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.
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.
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.
@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.
@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.
v4 is close to release now, with Symfony 5 support.
from ticketbundle.
Related Issues (20)
- Remove "choices_as_values" from form types
- How can i to implement class - methods? HOT 1
- How to change the roles of Hackzilla HOT 2
- Unable to find twig base template from HackzillaTicketBundle::layout.html.twig HOT 7
- twig 2 inheritance changes with macro - Accessing Twig_Template attributes is forbidden. HOT 2
- reserved word in column name 'status' HOT 3
- Extracting TicketManager into seperate Library HOT 3
- ODM HOT 12
- I have to allow status modification without a message HOT 13
- [RFC] Use mapped superclasses instead of provide the implemented entities HOT 1
- Add possibility to implement new Ticketstatuses HOT 1
- twig 2 inheritance changes with macro - Accessing Twig_Template attributes is forbidden. HOT 1
- Problem of AccessDeniedHttpException
- XML mapping for custom entities in project using Annotations
- Vich TicketMessageWithAttachment.xml should be renamed to Entity.TicketMessageWithAttachment.xml HOT 2
- Class Hackzilla\Bundle\TicketBundle\TicketMessageWithAttachment does not exist HOT 3
- Trouble with PermissionManager and UserManager HOT 3
- [Security] Hackzilla\Bundle\TicketBundle\Manager::hasPermission() result is ignored, meaning permissions are not checked and operation is always allowed HOT 1
- Error when filling the entity part 4.x HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ticketbundle.