I use doc:generate-migrations-diffto generate migration classes located in lib/migrations/. You already might know, that doc:generate-migrations-... tasks create some files in tmp directory. I had some problems with it and i delete all doctrine help files from tmp dir.
And now when I execute doc:generate-migrations-diff it fails with this message: Couldn't find class ToPrfxProduct2Site, I have Product2Site class, but there is no ToPrfxProduct2Site.
Any ideas?
Doctrine migration couldn`t find non-existed class
380 Views Asked by kirugan At
1
There are 1 best solutions below
Related Questions in SYMFONY
- Doctrine batch inserting uses 2GB of Ram
- Adding a callback when reading from an object in Twig
- Using Twig variable in AngularsJS
- Twig : Unescape hexadecimal text
- Symfony : is it better to use a trait or an intermediary class to complete Controller one?
- Symfony 2 form - date widget and validator
- Persisting other entities inside preUpdate of Doctrine Entity Listener
- Symfony2 - Custom annotation loading
- Display a findAll() result in a form
- What is the point of the name method in the symfony2 annotation?
- How to pass a function as a parameter in admin class
- doctrine/migrations incompatible with symfony 2.2.*
- Expected argument of type "string or Symfony\Component\Form\FormTypeInterface"
- Routing problems with AngularJS and Symfony
- symfony and google identity toolkit
Related Questions in DOCTRINE
- Doctrine batch inserting uses 2GB of Ram
- doctrine/migrations incompatible with symfony 2.2.*
- Symfony Doctrine findBy and then map
- Symfony2: transactions fail with "There is no active transaction."
- ZF2 form with fieldset and doctrine not working
- Symfony update managed Entity elsewhere
- Symfony2 Doctrine Translatable Extension Not Working
- Search from comma separated values in column
- How to select all rows that don't have one-to-many entity with certain value using Doctrine
- Inheritance on doctrine's embeddables
- Unique Entity Error message
- Trouble with using entity Field Type field with choice in case of standalone symfony-form component
- Retrieving POST from $form object with doctrine and symfony
- doctrine does not hydration when select custom fields
- Check if my query not return entity
Related Questions in MIGRATION
- NoMethodError: undefined method `add_attachment' for #<AddImageCloumnToPost:0x58 ba1b8>
- Not getting Downloaded - "Azure DocumentDB Data Migration Tool"
- migrate one ldap server to another - questions
- Scope attribute migration from Struts1 to Struts2
- Is there any way to rearrange the table's fields in Rails migrations?
- Unable to cast object of type 'System.Web.Hosting.SimpleWorkerRequest' to type 'System.Web.Hosting.IIS7WorkerRequest'
- handling really long migrations in Heroku
- Migrating source code from PVCS to SVN
- I am new to ubuntu.i have installed phpstorm and try to run composer but it's not running
- Magento Fatal error: Call to a member function setData()
- Add comment to SQL table
- Django migration having no effect, on postgres table
- Rollback and Start Over/Pending Migration
- How Django finds all the migrations
- Join table comment in rails 4 migration
Related Questions in DOCTRINE-1.2
- Adding virtual columns to current table in Doctrine?
- Driver not found when calling "doctrine create-db"
- Preventing Doctrine's query cache in Symfony
- Symfony, Doctrine, schema.yml, -guessing- relations problem
- Doctrine hook to validate record references onInsert
- PHP Doctrine 1.2 Using Nested Set , how moving a node in different situation
- Symfony 1.4 (Doctrine) admin generator: How to call symfony 1.4 admin generated filter options via a url
- Using Doctrine with Module based Zend Framework layout
- Setup of Doctrine CLI not quite working
- Pass an object to symfony 1 doctrine form
- Dynamically bind component to connection
- Symfony 1.4 forms doesn't save foreign key with embedRelation
- Doctrine foreach query - what is wrong?
- How to sort fields of a related (joined) table in query results?
- Doctrine 1.2: Can't reproduce query with Doctrine_Query
Related Questions in DOCTRINE-MIGRATIONS
- Command doctrine:migrations:migrate error
- Doctrine Migrations with own database connection instead of using migrations-db.php file
- Doctrine schema diff -- no objects
- Doctrine DBAL, diff command and enum type
- Doctrine migrations:diff regenerates same unique index constraint
- Is the Doctrine Migrations project compatible with Doctrine MongoDB?
- How to Exclude pre-existing Tables from Doctrine Migrations in Symfony?
- Symfony Doctrine Migrations - Use transactions to wrap migrations
- How to configure doctrine to ignore specific table in migration generation?
- How to insert multiple rows from a data array in a Doctrine migration?
- How to handle migrations with multiple entity managers in DoctrineMigrationsBundle 3
- Syntax error or access violation: 1064 You have an error in your SQL In symfony
- Workflow for managing schema changes with Doctrine2
- Doctrine migration couldn`t find non-existed class
- How can PHP doctrine/phinx migrations be deployed?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Ok, i figured this out. Generating of migrations is based on existing models, so first try to find models that dont exists in your schema. For me there was
Product2Site,Product2SiteTable' andBaseProduct2Site` models. Just delete this files and everything will be fine.