groenewege + doctrine   25

migrations
Migrations

when starting to use migrations :

## on your DEV system!

./symfony doctrine:generate-migrations-models
# -> will generate migration classes that upgrade from a blank database to ...
doctrine  symfony  from notes
november 2010 by groenewege
Import CSV data
function parseCsvFile($file, $columnheadings = false, $delimiter = ',', $enclosure = "\""){
$row = 1;
$rows = array();
$handle = fopen($file, 'r');

while (($data = fgetcsv($handl...
symfony  doctrine  from notes
october 2010 by groenewege
Change the primary key
class Tag extends BaseTag
{
public function setName($name)
{
$tag = Doctrine::getTable('Tag')->findOneByName($name);
if ($tag) {
$this->assignIdentifier($tag->identifier());
...
doctrine  symfony  from notes
october 2010 by groenewege

Copy this bookmark:



description:


tags: