Bee-Lab / BeelabTagBundle

🏷 A simple implementation of tags for Symfony and Doctrine ORM
GNU Lesser General Public License v3.0
46 stars 19 forks source link

Fix for Call to a member function toArray() on null #20

Closed cached closed 3 years ago

cached commented 5 years ago

This commit will fix "Call to a member function toArray() on null" error that might happen when "getTagsText" will be called on entity that has no associated tags ie. when adding new record to database

garak commented 5 years ago

Since constructor initializes tags collection, I can't see how it could be empty (where "empty" is meant as "empty variable", not "empty collection")

cached commented 3 years ago

This PR is not longer required