groenewege + doctrine 25
migrations
november 2010 by groenewege
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
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 ...
november 2010 by groenewege
A quick start guide to deploying symfony/doctrine applications with migrations
november 2010 by groenewege
get started with the migration feature of doctrine
symfony
doctrine
november 2010 by groenewege
Import CSV data
october 2010 by groenewege
function parseCsvFile($file, $columnheadings = false, $delimiter = ',', $enclosure = "\""){
$row = 1;
$rows = array();
$handle = fopen($file, 'r');
while (($data = fgetcsv($handl...
symfony
doctrine
from notes
$row = 1;
$rows = array();
$handle = fopen($file, 'r');
while (($data = fgetcsv($handl...
october 2010 by groenewege
Change the primary key
october 2010 by groenewege
class Tag extends BaseTag
{
public function setName($name)
{
$tag = Doctrine::getTable('Tag')->findOneByName($name);
if ($tag) {
$this->assignIdentifier($tag->identifier());
...
doctrine
symfony
from notes
{
public function setName($name)
{
$tag = Doctrine::getTable('Tag')->findOneByName($name);
if ($tag) {
$this->assignIdentifier($tag->identifier());
...
october 2010 by groenewege