This should be $item instead of $entity
Merge pull request #1 from owncloud/item-to-ent

This should be $item instead of $entity