I developed an application with Zend Framework and Doctrine ORM. To test the application on another environment, I tried to install it on a Synology DiskStation. I exported the MySQL-database with phpMyAdmin and imported it to the DiskStation. But Doctrine doesn't detect the scheme either all login-credential are correct. So I tried to create the scheme with ssh-access:
DiskStation> ./doctrine-module orm:schema-tool:create
.../bin/doctrine-module: Permission denied
Do you have any idea to solve this problem?
Many thanks in advance!
Make vendor/doctrine/doctrine-module/bin/doctrine-module and vendor/bin/doctrine-module executabe. Than it works.
Related
I've been able to deploy an example Symfony 3 app to a Google AppEngine Flexible PHP app following the example here. I then added the CloudSQL APIs to the project and the entries in app.yaml so when I SSH into an instance, I can see the MySQL socket in /cloudsql/. I then added the Doctrine bundles to the Symfony project, setup a couple models, etc., tested locally successfully, and tried to redeploy the app to Google.
When the deploy process runs composer, it's running the symfony-scripts entries defined in composer.json. Some of those routines need to access the database apparently but that's failing. I'm getting An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory errors from the clearCache script. If I remove that entry from composer.json and retry, I get the same error from the next script.
I'm beginning to think that the socket that connects to the database may not be configured during the app deploy process. Has anyone tried to do something like this before and gotten it to work?
Answering my own question...
Why does a composer update need access to the database
Adding server_version: 5.7 under doctrine dbal in my app/config/config.yml fixed this. It no longer tries to connect to the database during composer install and the app deploys now.
https://cartalyst.com/manual/sentinel/2.0#sentinel-authenticate
I've followed the basic installation in the Sentinel documentation for Native usage as I don't have Laravel installed, I have installed all the packages via Composer and I'd like to start doodling with Sentinel to test it before using it into production. My problem is I don't know how to setup MySQL/MariaDB for tables Sentinel will use, in fact I got an Exception like this
SQLSTATE[42S02]: Base table or view not found
Some other packages give the basic SQL file to import, but I don't know how to deal with database setup for Sentinel, please help!
There is a schema folder here: https://github.com/cartalyst/sentinel/tree/2.0/schema
You can find a mysql.sql (or mysql5.6+.sql) script to create your tables.
Have a question about zdt module. So I have looked at the documentation for Doctrine and ZF2 (also Marco Pivetti tutorial ), that's when I find out about zdt, and all is working like a charm on localhost, but when I transfer the project to IBM bluemix server, the module ZendDeveloperTools is throwing server error 500 (know that because when I comment this name in modules in application.config file it's working ok, but without the zdt).
I have installed it all via composer, and copy to autoload files, and all that is said in tutorials, but it's not working. Does anyone had this kind of problem on IBM's bluemix server ? I'm using the cloudfoundry/php buildpack with most of the modules enabled. Haven't worked with zdt so don't know where the problem might be.
Looked everywhere (even here in SO) but can't find the proper answer to my solution.
Any help would be much appreciated :)
according to what you specified in your comments, the error 500 is related to the DB Connection config you are using in Doctrine ORM:
your config is using PDO_MYSQL driver and it is not available by default on PHP runtime in Bluemix (you have to specify in composer.json dependencies if you want to use it in PHP runtime on Bluemix)
Regarding what you are looking for in your following comments, Doctrine 2 supports NoSQL ODM on MongoDB and CouchDB
Here you can find all the documentation for Doctrine ODM over MongoDB
http://docs.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/
I'm on windows 7 64 bits.
I will have to do the migration of a Symfony 1.4 website.
I found the command orm:convert-d1-schema to convert the Symfony 1.4 DB Schema to Symfony 2.
But this command is not implemented in Symfony 2.4
http://forum.symfony-project.org/viewtopic.php?f=23&t=33149
https://github.com/symfony/symfony/issues/1442
I tried to install the doctrine 2 CLI to do the converting but I got errors and stopped trying this as this is probably a bad idea.
Do you know how I can get this command working on Symfony ?
In order to use all the orm:* commands available in Doctrine 2 you will need to configure/setup the Commandline Tools.
If you've followed a standard symfony 2 project setup you probably have a bin/ directory under your project root. Inside that folder you should file two files doctrine and doctrine.php.
You should use this doctrine executable or probably the doctrine.php since you're on Windows instead of the app/console one.
This way you'll be able to use the Doctrine ORM commands directly instead of the "alias provided by symfony" for them.
If you have further questions regarding this let me know.
Regards,
I am new to Symfony framework. I got Symfony (v1.4.8) on my Netbeans 6.8 and also got the initial success page.
Now, I want to Configure a database using Propel ORM Tool. But in Netbeans I am getting Doctrine as the default tool enabled. I am not even getting the PROPEL commands in my Run Commands window. I configured Netbeans for Symfony as per the instructions at:
http://netbeans.org/kb/docs/php/symfony-screencast.html
I tried editing "ProjectConfiguration.class" but of no success. Can anyone help me on this?
Guys... I seemed to have solved it the stupid way. I fixed the Properties.ini and ProjectConfiguration.class.php in the Config folder of my project (which I was doing for a long time) and then restarted my NetBeans.
I had all the Propel Modules loaded up...
In the /config/ProjectConfiguration.class.php edit the line
$this->enablePlugins('sfDoctrinePlugin');
to load the Propel plugin instead:
$this->enablePlugins('sfPropelPlugin');
Also in the /config/properties.ini set
orm=Propel