ErlyORM / boss_db

BossDB: a sharded, caching, pooling, evented ORM for Erlang
Other
277 stars 138 forks source link

Fix has many relationships. #167

Closed davidw closed 10 years ago

davidw commented 10 years ago

Closes https://github.com/ChicagoBoss/boss_db/issues/166

davidw commented 10 years ago

Dialyzer error:

src/boss_record_compiler.erl:569: The call boss_record_compiler:has_many_forms(HasMany::any(),ModuleName::any(),'all',Opts::any()) will never return since the success typing is (atom(),atom(),pos_integer(),[any()]) -> [{'tree',atom(),{'attr',_,[any()],{_,_,_}},_} | {'wrapper',atom(),{'attr',_,[any()],{_,_,_}},_},...] and the contract is (atom(),atom(),pos_integer(),[any()]) -> syntaxTree()