Posts by Luiz E. • 135 points
2 posts
-
2
votes1
answer114
viewsQ: avoid stackoverflow while reading and popular relationships
I’m making a library that populates any model with random values, to be used in tests, but it turns out that when I have a relation like below, I get a StackOverflowException Author @Entity public…
-
1
votes1
answer146
viewsQ: activerecord is not saving the relationship
I have a relationship like that in Rails class ReducaoZ < ActiveRecord::Base self.table_name = 'reducaoz' has_many :aliquotas, foreign_key: 'reducaoz_id', class_name: 'Aliquota', dependent:…