Skip to content

Commit

Permalink
Fix typo and add missing parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
bocharsky-bw committed Mar 14, 2019
1 parent a2ed56f commit 35cd7e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions knpu/extra-doctrine-collections/easy-collection-filtering.md
Expand Up @@ -4,21 +4,21 @@ I have *one* last cool trick to show you. Go back to `/genus`.

Oh, but real quick, I need to fix two little things that I messed up before we finish.

## Oh my, a Missing inversedBt
## Oh my, a Missing `inversedBy()`

First, see that red label on the web debug toolbar? Click it, and scroll down.
It's a mapping warning:

> The field `User#studiedGenuses` property is on the inverse side of a bidirectional
> relationship, but the association on blah-blah-blah does not contain the required
> `inversedBy`.
> `inversedBy()`.
In human-speak, this says that my `User` correctly has a `studiedGenuses` property
with a `mappedBy` option...

[[[ code('59f015559c') ]]]

But on `GenusScientist`, I forgot to add the `inversedBy` that points back to this:
But on `GenusScientist`, I forgot to add the `inversedBy()` that points back to this:

[[[ code('ff68759154') ]]]

Expand Down

0 comments on commit 35cd7e1

Please sign in to comment.