Closed lucasdidur closed 1 year ago
Instead of throw an error, return a empty list.
Hello @lucasdidur sorry, it's not clear for me. Without the entity declaration, the database processor cannot detect the connected DAO. This error is designed to help you avoid the situation when you forget to declare an entity.
As far as I understand is this working as intended. I will close this issue.
It would be great to remove this validation in the generator. This would make it possible to configure templates without an entity configured in the initial floor configuration.
https://github.com/pinchbv/floor/blob/9967c32df262ce5faec2b0b7afc07dd5e3fcb862/floor_generator/lib/processor/database_processor.dart#L123
Generates this error on builder