Open SimonHeimberg opened 7 years ago
improve the doc (on Readme) to mention the behaviour
Can be done in the docblock of the interface, IMO.
improve setReference to throw clear error messages when something invalid is passed (throw before getReference fails)
If we modify the docs, this is a must anyway.
support transfering an ArrayCollection with entities by setReference/getReference
I wouldn't do this, since it is still possible to persist/load anything (event Traversable
implementations) if correctly implemented.
What I found out by trying is that setReference/getRefrence only support to store database entities. This should be improved that it is clear before trying.
Current behaviour:
array()
) to setReference raises an error telling that only objects are supportedsuggestions
work around for transfering array of entities
set
get