Skip to content

Instantly share code, notes, and snippets.

@weaverryan
Created December 14, 2011 21:19
Show Gist options
  • Select an option

  • Save weaverryan/1478584 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

Does this configuration fail ?

@willdurand

Copy link
Copy Markdown

I'd like to read errors actually

@weaverryan

Copy link
Copy Markdown
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
Copy Markdown

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

@weaverryan

Copy link
Copy Markdown
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
Copy Markdown

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

@weaverryan

Copy link
Copy Markdown
Author

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

@willdurand

Copy link
Copy Markdown

My pleasure :)

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