philiplb / CRUDlex

CRUDlex is an easy to use CRUD generator for Symfony 4 and Silex 2 which is great for auto generated admin pages
https://philiplb.de/crudlex/
MIT License
109 stars 23 forks source link

Unhelpful error message: "Template "@crud/Field.twig" is not defined" #58

Closed jmfayard closed 8 years ago

jmfayard commented 8 years ago

Hello, would be great to have clearer error messages when we type a sql attribute name.

Let say we have a table called export with a column user_id

If you do this kind of type,

export:
  fields:
-    user_id:
+    user:

... the error is not perfect, but you can understand what is going on

image

On the other hand if you do something like this

-  filter: [user_id]
+  filter: [user]

-  listFields: [user_id]
+  listFields: [user]

then you wonder what causes

image

philiplb commented 8 years ago
screen shot 2016-08-20 at 01 23 57

Fixed in https://github.com/philiplb/CRUDlex/commit/043e1807ad639c886c283394cffdaace1c2ddece