Skip to content

Commit

Permalink
minor #354 Forgotten tip in the UPGRADE file (Pierstoval)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Forgotten tip in the UPGRADE file

Actually, I upgraded from 1.4 to the latest 1.5 ver, and it has been a hell since yesterday. Every admin section was a blank page, and I couldn't find out what was going wrong until I saw the problem in the logs: variable names has changed, and it's kind of important to notice it to developers.

Commits
-------

578513f Forgotten tip in the UPGRADE file
  • Loading branch information
javiereguiluz committed Jun 4, 2015
2 parents 0a24646 + 578513f commit da29645
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ easy_admin:
label: 'My Fancy Entity!'
```

### Changed variables names in twig views

The former `_entity` variable was used to retrieve the current entity configuration.
This variable has been renamed to `_entity_config` for convenience and readability reasons.

The old `item` variable was used to carry the currently created/edited entity.
This variable has been renamed to `entity` for better understandability.

Be sure that you did not override these variables, if so, you just have to change the name.

Upgrade to 1.4.0
----------------

Expand Down

0 comments on commit da29645

Please sign in to comment.