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
A SQLSTATE[42S22]: Column not found: 1054 Unknown column 'documents.' in 'where clause' (SQL: select *,idfromdocumentswheredocuments.``is null limit 1)
Trying to select with a blank column name, presumably as the column name cannot be set from anywhere.
The text was updated successfully, but these errors were encountered:
smallhadroncollider
changed the title
morphTo causes issues if there is not morphable _type definedmorphTo causes issues if there is no morphable _type defined
Jul 18, 2016
I have a
Document
class with adocumentable
morphTo relationship.If I try to access
$document->documentable
when thedocumentable_type
column isNULL
I get two different issues, depending on the context.Class not found
exceptionThis seems to be caused because the
$class
variable cannot get a value in themorphTo
method ofEntityMap
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'documents.' in 'where clause' (SQL: select *,
idfrom
documentswhere
documents.``is null limit 1)
Trying to select with a blank column name, presumably as the column name cannot be set from anywhere.
The text was updated successfully, but these errors were encountered: