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
Entity with fields to and from produces invalid SQL due to not being quoted is the AS part.
Fields on entity are defined as such:
/**
* @var string $to
* @Orm\Column(name="to", type="string", length=255)
*/
private $to;
SQL errors:
SELECT e.revtype, id AS id, name AS name, to AS to, from AS from, subject AS subject, body AS body FROM MailTemplate_audit e WHERE e.rev = ?' with params {"1":"4"}: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to, from AS from, subject AS subject, body AS body FROM MailTemplate_audit e W' at line 1 (uncaught exception)
Entity with fields
to
andfrom
produces invalid SQL due to not being quoted is the AS part.Fields on entity are defined as such:
/**
* @var string $to
* @Orm\Column(name="
to
", type="string", length=255)*/
private $to;
SQL errors:
SELECT e.revtype, id AS id, name AS name,
to
AS to,from
AS from, subject AS subject, body AS body FROM MailTemplate_audit e WHERE e.rev = ?' with params {"1":"4"}: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to,from
AS from, subject AS subject, body AS body FROM MailTemplate_audit e W' at line 1 (uncaught exception)Quick (but untested for side affects) fix is to comment out the end of line 222 of SimpleThings\EntityAudit\AuditReader (https://github.com/simplethings/EntityAudit.git 60a5bcb)
EDIT: Correct formatting for clarity (
to
andfrom
was showing asto
andfrom
)The text was updated successfully, but these errors were encountered: