Welcome Guest, Not a member yet? Register   Sign In
Doctrine Sqlite3 questions
#1

[eluser]joeizang[/eluser]
hi,

phpandstuff have a wonderful tut on setting up the doctrine ORM and CodeIgniter, my question is setting it up with SQLite got me kinda confused,the defaults that are set with MySQL are for example:

Code:
Doctrine_Manager::getInstance()->setAttribute( Doctrine::ATTR_AUTO_ACCESSOR_OVERRIDE, true);
#this sets all table columns to notnull and unsigned (for ints) by default

Doctrine_Manager::getInstance()->setAttribute( Doctrine::ATTR_DEFAULT_COLUMN_OPTIONS, array('notnull' => true, 'unsigned' => true));

#set the default primary key to be named 'id', integer, 4 bytes

Doctrine_Manager::getInstance()->setAttribute( Doctrine::ATTR_DEFAULT_IDENTIFIER_OPTIONS, array('name' => 'id', 'type' => 'integer', 'length' => 4));
do i have to use these defaults while setting up sqlite database? I ask this because its sqlite3 with pdo.

Thanks a mil guys.




Theme © iAndrew 2016 - Forum software by © MyBB