Skip to content

Instantly share code, notes, and snippets.

@weaverryan
Created December 14, 2011 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weaverryan/1478584 to your computer and use it in GitHub Desktop.
Save weaverryan/1478584 to your computer and use it in GitHub Desktop.
Propel with sqlite
dbal:
driver: sqlite
dsn: sqlite:/temp/abc.db
options: {}
attributes: {}
@willdurand
Copy link

Does this configuration fail ?

@willdurand
Copy link

I'd like to read errors actually

@weaverryan
Copy link
Author

Yes, fails here: https://github.com/propelorm/PropelBundle/blob/master/Command/AbstractPropelCommand.php#L387

due to no match on dbname - so an undefined index.

@willdurand
Copy link

Are you using database:create/database:drop commands ?

@weaverryan
Copy link
Author

yep, sorry - yes - those exactly... and I just realized that that's probably not necessary with sqlite :). Is that right? Did it as muscle memory from Doctrine, which doesn't fail on that command (but doesn't actually do anything other than create a blank file, I think).

@willdurand
Copy link

Yeah, I'll work on a patch to handle that case. There is no need to create a database using SQLite :)

@weaverryan
Copy link
Author

Thanks Will - wish I had thought of that :) - but I really appreciate you setting me straight.

@willdurand
Copy link

My pleasure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment