<< Doctrine 0.9.1 / 0.10.1 Released 0.10.2 Released >>

Doctrine ORM Sandbox

Doctrine ORM Sandbox

Posted by jwage 3 months ago.

Today I would like to announce the official introduction of the Doctrine sandbox package. The Doctrine sandbox was first introduced in SVN a few months ago, but is now available as a downloaded package. Every major release of Doctrine has a sandbox available for it. The sandbox is a sample implementation of Doctrine that is ready to be used with zero configuration. It comes configured with a sqlite database so it requires that you have pdo sqlite enabled on your server. The packages can be downloaded here. I have also put together a small wiki page on how you can get started using the sandbox to easily play with Doctrine. The wiki page can be found here.


Comments (8) [ add comment ]

what about windows? - Posted by mike about 3 months ago.

If any tutorial for windows XP???

hmmm - Posted by jwage about 3 months ago.

To be honest I don't even have a proper lamp5 windows setup to test this on to even confirm if it works or does not work.

Mike, why don't you catch me in irc one day this week and we'll give it a test. irc.freenode.com#doctrine

login required - Posted by mike about 3 months ago.

Hi Jwage,

I went to irc.freenode.com, but it requires username and password. How do I meet you there? Thanks.

I would like to write a general tutorial if I can get through.

Posted by jwage about 3 months ago.

hmm, what irc client did you try and use to connect? I dont think it requires that you have an account to join up

Says Empty DSN when it's not [?] - Posted by Alpha 142 about 3 months ago.

Any idea how to solve this?


PHP Fatal error: Uncaught exception 'Doctrine_Manager_Exception' with message 'Empty data source name' in D:\wwwroot\sandbox\lib\Doctrine\Manager.php:389 Stack trace: #0 D:\wwwroot\sandbox\lib\Doctrine\Manager.php(277): Doctrine_Manager->parseDsn('sqlite:///.\san...') #1 D:\wwwroot\sandbox\lib\Doctrine\Manager.php(237): Doctrine_Manager->openConnection('sqlite:///.\san...', 'sandbox.db') #2 D:\wwwroot\sandbox\config.php(51): Doctrine_Manager::connection('sqlite:///.\san...', 'sandbox.db') #3 D:\wwwroot\sandbox\index.php(2): require_once('D:\wwwroot\sand...') #4 {main} thrown in D:\wwwroot\sandbox\lib\Doctrine\Manager.php on line 389

IRC - Posted by mike about 3 months ago.

I am using mIRC, and I can get in. But I need to select a channel to join. I don't know which channel you are in.

Posted by jwage about 3 months ago.

I am in the channel #doctrine. Use this command: /join #doctrine


Alpha, can we see your dsn string?

Empty DSN - Posted by Alexey Kupershtokh about 2 months ago.

I have almost the same problem as Alpha has. The only difference is that on my system DSN looks like "sqlite:///C:\WWWROOT\Doctrine-0.10.2-Sandbox\sandbox.db", and parse_url's result for this DSN is false (I've put var_dump($parts) into lib\Doctrine\Manager.php:379).

So I had to change
$dsn = str_replace("///c:/", "//c:/", $dsn);
to
$dsn = str_replace("///C:\\", "//C:/", $dsn);
to fix the problem.

Add Comment

Add New Comment
Please enter 'follow the doctrine' without the quotes