Doctrine 2 don't generate entity class - doctrine-orm

I wan't to generate entity class in Symfony 3.0.0 but when I type this command:
php bin/console doctrine:generate:entity
and I type this: "BundleName:EntityName", the process don't finish... Likewise I type this command:
php bin/console doctrine:database:create
No Error message appear...
For information, when the Bundle is generated, There's no "entity" directory.
Have you a solution?

Do you have entities in an Entity folder in your BundleName bundle in src ?

Related

ng build --prod - Error: Property body expected type of array but got null

I recently made a new branch in my angular project and am working on in for a bit. Now I wanted to build it for testing on smartphones. When using ng build --prod, I get the following error (ng build works tho!)
An unhandled exception occurred:
/Users/r/Documents/.../project/main-es2015.23a6f948094203a25f4a.js:
Property body expected type of array but got null See
"/private/var/folders/c5/y_n4tj316sq9x1nqx20qdlh40000gp/T/ng-FBFvv4/angular-errors.log"
for further details.
The angular-errors.log is not helpfull at all:
[error] TypeError:
/Users/r/Documents/.../project/main-es2015.23a6f948094203a25f4a.js:
Property body expected type of array but got null
at validate (/Users/r/Documents/.../project/node_modules/#babel/types/lib/definitions/utils.js:160:13)
at Object.validate (/Users/r/Documents/.../project/node_modules/#babel/types/lib/definitions/utils.js:229:7)
at validateField (/Users/r/Documents/.../project/node_modules/#babel/types/lib/validators/validate.js:24:9)
at Object.validate (/Users/r/Documents/.../project/node_modules/#babel/types/lib/validators/validate.js:17:3)
at NodePath._replaceWith (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/replacement.js:172:7)
at NodePath._remove (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/removal.js:57:10)
at NodePath.remove (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/removal.js:36:8)
at PluginPass.ForOfStatement (/Users/r/Documents/.../project/node_modules/#babel/plugin-transform-for-of/lib/index.js:206:16)
at newFn (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/visitors.js:175:21)
at NodePath._call (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/context.js:55:20)
at NodePath.call (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/context.js:42:17)
at NodePath.visit (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/context.js:92:31)
at TraversalContext.visitQueue (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/context.js:116:16)
at TraversalContext.visitSingle (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/context.js:88:19)
at TraversalContext.visit (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/context.js:144:19)
at Function.traverse.node (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/index.js:82:17)
Production Environment.prod.ts looks like this:
export const environment = {
production: true,
VERSION: require('../../package.json').version
};
I tried using the --source-map=true flag, but it is canceling building before its able to write the sourcemap.
I didnt put hands on my package.json since two month, but also tried deleting the node_modules and reinstall them.
I also tried changing rxjs and typescript versions, but no success
Im using angular -v 10.1.6, typescript -v 4.0.3, rxjs -v 6.4.5
What can I do??
Any help appreaciated!
I found a solution here https://github.com/angular/angular-cli/issues/16998.
My problem was using Labels. It appears that babel is having a bug with that.

Ionic2 build demos not working

I want to build the demos from the forked Ionic 2 repository. when I run 'gulp demos.build'
I get the following errors on my terminal:
ERRROR: Command failed: node --max_old_space_size=8096 /Users/luki/Applications/ionic-fork/ionic/node_modules/.bin/ngc -p /Users/luki/Applications/ionic-fork/ionic/demos/tsconfig.json
Error: Error at /Users/luki/Applications/ionic-fork/ionic/node_modules/#types/protractor/index.d.ts:22:27: Module 'webdriver' has no exported member 'IButton'.
Error at /Users/luki/Applications/ionic-fork/ionic/node_modules/#types/protractor/index.d.ts:25:24: Module 'webdriver' has no exported member 'IKey'.
Error at /Users/luki/Applications/ionic-fork/ionic/node_modules/#types/protractor/index.d.ts:28:45: Property 'Error' does not exist on type 'typeof error'.
I installed 'typings install selenium-webdriver but it doesn't help. Maybe some other typings are missing ...
Anybody got a clue about this ?

GSP compilation failed in grails

When I run grails war I got the following error
Compiling 30 GSP files for package [appInfo].
| Error GSP Compilation error in file /WEB-INF/plugins/app-info-0.4.3/grails-app/views/appinfo/hibernateEntityInfo.gsp at line 69: Tag [each] missing required attribute [in]
I used
grails 2.2.4
and also I want to know the app-info plugin location in the application
It is the problem with App-info plugin. I also got similar problem . I solved by following way
Clean the application using
grails Clean
then run the application using
grails RunApp
and make sure If you are using sequences in the application do not use mysql because mysql does not support sequences.

Overriding rake task fails after upgrading to rails 4

I am trying to upgrade my app from rails 3.2.18 to rails 4.0 and I'm stuck on an issue with rake.
I have a custom doc.rake task that overrides doc:app with the following code inside that worked fine on rails 3:
# Replace Rails' rake doc:app with ours, which uses yardoc
Rake::Task["doc:app"].clear.enhance do
# Uses .yardopts_app file in rails root
app_dir = 'doc/generated/app'
sh "rm -rf #{app_dir}"
sh "bundle exec yardoc --plugin rails --yardopts .yardopts_app"
app_doc_files_dir = "#{app_dir}/doc-files"
Dir.mkdir( app_doc_files_dir )
cp_r( 'doc/files/app/doc-files/.', app_doc_files_dir )
end
Since upgrading rails, any rake task I try to run fails with the error:
rake aborted!
Don't know how to build task 'doc:app'
I'm really at a loss as to why this is happening. I can't find any reference to rails 4 removing the default doc:app task, so it should still exist for me to overwrite.
I was able to solve this by adding
require 'rails/tasks'
to the top of my rake file. So my full rake file looks like this now:
require 'rdoc/task'
require 'rails/tasks'
Rake::Task["doc:app"].clear
namespace :doc do
RDoc::Task.new('app') do |rdoc|
...
end
end

Installing doctrine data fixtures in symfony 2.1.4

Here is what i did:\
added following dependencies inside composer.json
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/data-fixtures": "dev-master"
ran following command at the terminal:
php composer.phar update
Added following line to appKernel.php
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
When I ran any symfony commands at the prompt, I got error as below:
Class not found: Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle
Then i opened vendor\composer\autoload_namespaces.php and added following line:
'Doctrine\\Bundle\\FixturesBundle' => $vendorDir . '/doctrine/doctrine-fixtures-bundle/'
The error was gone and i could use data fixture easily.
My question is that should the namespace be automatically inserted into vendor\composer\autoload_namespaces.php when I run composer update or I had to manually insert the above line into the autoload_namespaces.php?
In documentation I didnt find anything that says to insert the namespace manually