Skip to content

Instantly share code, notes, and snippets.

@blacksails
Created May 27, 2015 08:07
Show Gist options
  • Save blacksails/aeeff6c6b7816d0201e9 to your computer and use it in GitHub Desktop.
Save blacksails/aeeff6c6b7816d0201e9 to your computer and use it in GitHub Desktop.
iex(6)> VestasAPI.Repo.all assoc(p, :project_users)
** (Protocol.UndefinedError) protocol Ecto.Queryable not implemented for ProjectUser, the given module does not exist
(ecto) lib/ecto/queryable.ex:33: Ecto.Queryable.Atom.to_query/1
(ecto) lib/ecto/query/builder/from.ex:88: Ecto.Query.Builder.From.apply/2
(ecto) lib/ecto/association.ex:314: Ecto.Association.Has.assoc_query/2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment