Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to be able to @Ignore fields #220

Closed
abhinavc opened this issue Nov 11, 2019 · 2 comments
Closed

Need to be able to @Ignore fields #220

abhinavc opened this issue Nov 11, 2019 · 2 comments

Comments

@abhinavc
Copy link

Hi Vitus,
I have a database model for which I'm trying to define equality (overload operator==) using the Equatable package.

Equatable requires the following changes in one's model:

   class Model with EquatableMixin {
       .... 
       List<Object> get props => [ .... ] ; 
   }

where props is the list of data members that must be equal for two objects to be considered equal.

Problem is the get props line. Floor's generator function seems to think that this is a database column and errors out with the following message

Error running FloorGenerator
Column type is not supported for List<Object>.

The solution would be to @Ignore the said line - as proposed in issues #12, #216 etc. Would it be possible, therefore, to get a quick patch release with this fix? The alternative would be for me to not use Equatable at all.

Thanks
Abhinav.

@abhinavc
Copy link
Author

Vitus,
For now, I have stopped using Equatable and overloaded == in whichever classes I needed to. So, no rush from my side. However, @Ignore would be useful ;-)

Thanks
Abhinav.

@vitusortner
Copy link
Collaborator

Closed by #248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants