stephpy/timeline-bundle

Exception with Composite Key and JoinColumn

Closed this issue · 7 comments

The TimelineBundle generates an Exception Composite Key and JoinColumn, see https://gist.github.com/rande/9439778 for a complete definition.

The exception is

QueryException: [Semantical Error] line 0, col 99 near 'material) IN('',': Error: Invalid PathExpression. Must be a StateFieldPathExpression.  +

QueryException: SELECT r FROM Sonata\Bundle\DemoBundle\Entity\Color r WHERE MULTI_CONCAT(r.r,'#',r.g,'#',r.b,'#',r.material) IN('', '', '', '', '', '', '')

Got something similar in tag 1.4.0

see https://gist.github.com/meshenka/9836117

[Doctrine\DBAL\DBALException]
An exception occurred while executing 'INSERT INTO timeline (created_at, type, subject_mo
del, subject_id, context) VALUES (?, ?, ?, ?, ?)' with params ["2014-03-28 16:54:23", "sp
read", "Nm\SearchBundle\Entity\User", 4, "GLOBAL"]:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'spread-Nm\SearchBu
ndle\Entity\User-4-GLOBAL' for key 'PRIMARY'

[PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'spread-Nm\SearchBu
ndle\Entity\User-4-GLOBAL' for key 'PRIMARY'

Cannot figure out where this constraint comme from

my bad, i moved to dev-master

Hi, sorry for delay, i'll take a look at soon as possible.

@meshenka if this was fixed on dev-master or the last tag please confirm and close this ticket

it is good to go on dev-master

not sure i follow what you said. Is this fixed on master? is that what you mean? If so please close the ticket

it is fixed on master. i do not know how i can close this issue