Open orisha opened 5 years ago
It's hard to help with an issue, that is happening on your localhost. What is the error message? Are you able to recreate this error in a unit test?
Also please reformat your text to make this issue more readable using the Markdown syntax: https://guides.github.com/features/mastering-markdown/
doctrine/annotations v1.6.0 Docblock Annotations Parser doctrine/cache v1.8.0 Caching library offering an object-oriented API for many cache backends doctrine/collections v1.5.0 Collections Abstraction library doctrine/common v2.10.0 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflec... doctrine/dbal v2.9.2 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management. doctrine/doctrine-bundle 1.10.1 Symfony DoctrineBundle doctrine/doctrine-cache-bundle 1.3.5 Symfony Bundle for Doctrine Cache doctrine/event-manager v1.0.0 Doctrine Event Manager component doctrine/inflector v1.3.0 Common String Manipulations with regard to casing and singular/plural rules. doctrine/instantiator 1.1.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers. doctrine/orm v2.6.3 Object-Relational-Mapper for PHP doctrine/persistence v1.1.0 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share. doctrine/reflection v1.0.0 Doctrine Reflection component
Symfony v 3.4
Description I can not update a Schema based on changes done on Entity files ! I created for test purposes a new entity within a 'json' typed field.
First, it worked fine: I was able to schema update, store and read on/for the field.
But, when I modify the Entity file and try to update the schema by terminal, it throws an error. Like, if I remove a field, it throws an error say that the field doens't exists . ( Sure it doens't exists, I've modified it ) Same happens if I delete the entity file: the error says that the class doesn't exists
This error only happens in my localhost ( XAAMP on MacOS 10.14 ). I also have an vps runnning ubuntu whrere the problem does NOT show !!!
Sure I tried many times to clear caches from Symfony and Doctrine. Even tried to delete cookies, restart the apache/mysql and the computer ! Always same error ... Also tried to drop and rename database ...
How to reproduce I can only get this error on my localhost via terminal: php bin/console doctrine:schema:update --force --em=MyTest
....
This error start to show only AFTER include 'json' type !!!! Never used such type before, never got similar problem before