setName('nws_block_version'); $this->setPhpName('BlockVersion'); $this->setClassname('Trinity\\Bundle\\NewsletterBundle\\Model\\BlockVersion'); $this->setPackage('vendor.trinity.src.Trinity.Bundle.NewsletterBundle.Model'); $this->setUseIdGenerator(false); $this->setSingleTableInheritance(true); // columns $this->addForeignPrimaryKey('id', 'Id', 'INTEGER' , 'nws_block', 'id', true, null, null); $this->addColumn('name', 'Name', 'VARCHAR', true, 255, null); $this->addColumn('value', 'Value', 'LONGVARCHAR', false, null, null); $this->addColumn('class_key', 'ClassKey', 'VARCHAR', false, 255, null); $this->addColumn('template', 'Template', 'VARCHAR', false, 255, null); $this->addColumn('model_id', 'ModelId', 'INTEGER', false, null, null); $this->addColumn('created_at', 'CreatedAt', 'TIMESTAMP', false, null, null); $this->addColumn('updated_at', 'UpdatedAt', 'TIMESTAMP', false, null, null); $this->addPrimaryKey('version', 'Version', 'INTEGER', true, null, 0); $this->addColumn('version_created_at', 'VersionCreatedAt', 'TIMESTAMP', false, null, null); $this->addColumn('version_created_by', 'VersionCreatedBy', 'VARCHAR', false, 100, null); $this->addColumn('model_id_version', 'ModelIdVersion', 'INTEGER', false, null, 0); // validators } // initialize() /** * Build the RelationMap objects for this table relationships */ public function buildRelations() { $this->addRelation('Block', 'Trinity\\Bundle\\NewsletterBundle\\Model\\Block', RelationMap::MANY_TO_ONE, array('id' => 'id', ), 'CASCADE', null); } // buildRelations() /** * * Gets the list of behaviors registered for this table * * @return array Associative array (name => parameters) of behaviors */ public function getBehaviors() { return array( 'event' => array ( ), 'extend' => array ( ), ); } // getBehaviors() } // BlockVersionTableMap