You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ContentRichEntityInterface has a big disadvantage that we can not add Content to a third party Entity or a Object not in our Context. And I personally think it should be possible to add Content to every Doctrine Entity, also if it comes from a third party bundle where we are not able to add an Interface to it.
And the DimensionContentInterface reference to it with the following methods:
getResource()
getResourceKey()
getResourceId (RoutableInterface)
So we could replace the exist function:
getId() -> getResourceId()
getDimensionContents() -> DimensionContentRepository should be used here
createDimensionContent() -> DimensionContentInterface::create function given the resource object create(object $resource)
addDimensionContent(DimensionContentInterface $dimensionContent) -> not needed if a relation on doctrine exist can be called in create could call the add on the resource
removeDimensionContent(DimensionContentInterface $dimensionContent): -> never used or called by us
The text was updated successfully, but these errors were encountered:
The
ContentRichEntityInterface
has a big disadvantage that we can not addContent
to a third party Entity or a Object not in our Context. And I personally think it should be possible to add Content to every Doctrine Entity, also if it comes from a third party bundle where we are not able to add an Interface to it.As written in the Rename ContentRichEntity to Resource Issue.
Currently the
ContentRichEntityInterface
has the following methods:getId()
getDimensionContents()
createDimensionContent()
addDimensionContent(DimensionContentInterface $dimensionContent)
removeDimensionContent(DimensionContentInterface $dimensionContent):
And the
DimensionContentInterface
reference to it with the following methods:getResource()
getResourceKey()
getResourceId
(RoutableInterface)So we could replace the exist function:
getId()
->getResourceId()
getDimensionContents()
-> DimensionContentRepository should be used herecreateDimensionContent()
-> DimensionContentInterface::create function given the resource objectcreate(object $resource)
addDimensionContent(DimensionContentInterface $dimensionContent)
-> not needed if a relation on doctrine exist can be called increate
could call the add on the resourceremoveDimensionContent(DimensionContentInterface $dimensionContent):
-> never used or called by usThe text was updated successfully, but these errors were encountered: