Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration help #15

Open
adriavidal opened this issue Oct 9, 2014 · 8 comments
Open

Configuration help #15

adriavidal opened this issue Oct 9, 2014 · 8 comments

Comments

@adriavidal
Copy link

I've tried to install without exit these bundle,
have some detailed install how-to with the right directory's for every file?

I get these error trying to run a second database connection with

root@extranet:/var/www/extranet# php app/console doctrine:database:create --connection=customer
PHP Fatal error: Class 'Realestate\MssqlBundle\RealestateMssqlBundle' not found in /var/www/extranet/app/AppKernel.php on line 23

@fesor
Copy link
Contributor

fesor commented Oct 9, 2014

Did you use composer to install this bundle?

@adriavidal
Copy link
Author

No, tried it by hand.

Will try to do it with composer.

@adriavidal
Copy link
Author

ok, got it via bundle.

have setup config.yml with the customer connection and params

customer:
driver_class: \Realestate\MssqlBundle\Driver\PDODblib\Driver
host: "%database_host2%"
dbname: "%database_name2%"
user: "%database_user2%"
password: "%database_password2%"

But configuring doctrine give me another error.

Could not create database for connection named [NNNN]
Notice: Undefined property: Doctrine\DBAL\Connection::$options in /var/www/extranet/vendor/isoft/mssql-bundle/Realestate/MssqlBundle/Schema/DblibSchemaManager.php line 65

@linkolen
Copy link

@fesor @adriavidal I have the same issue
Notice: Undefined property: Doctrine\DBAL\Connection::$options
any solution please

@albertoSoft
Copy link

Notice: Undefined property: Doctrine\DBAL\Connection::$options ....... Same problem ..... :( someone can help us...

@fesor
Copy link
Contributor

fesor commented May 16, 2015

Which version of Doctrine DBAL you use?

@albertoSoft
Copy link

this one "doctrine/dbal": "<2.5",
and symfony 2.3
O. S. Windows 7

@albertoSoft
Copy link

when i try >php app/console doctrine:database:create --connection=mssql , i have this message:

Notice: Undefined property: Doctrine\DBAL\Connection::$options in C:...projectName\vendor\isoft\mssql-bundle\Realestate\MssqlBundle\Schema\DblibSchemaManager.php on line 65

//***************parameter.yml

database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: base
database_user: user
database_password: userpass
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
locale: es
secret: cabdac55292441407995420545d1cf2a

database_host2: 127.0.0.1
database_port2: 1433
database_name2: MSSQLBase
database_user2: sa
database_password2: password

//**********Config.yml
doctrine:
dbal:
default_connection: default
connections:
default:
driver: "%database_driver%"
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
mssql:
#driver: "%database_driver2%"
driver_class: Realestate\MssqlBundle\Driver\PDODblib\Driver
host: "%database_host2%"
port: "%database_port2%"
dbname: "%database_name2%"
user: "%database_user2%"
password: "%database_password2%"
#charset: UTF8

default connection is fine, i can do everything in mysql.
I hope you can help me....
i tried to change database_host2: SERVERNAME\INSTANCE insted 127.0.0.1 but it is the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants