Stopping Fix
Merge pull request #8 from kiuby88/phpAppDBSupport

Fixed an infinite loop after calling stop or expunge on PHP entities.