Wiki

Articles tagged with "database", sorted by date (updated)X
Displaying 11-16 of 16 result(s).

Application-driven database with CDbMigration and an extended CActiveRecord

Updated 2 years ago by Tudor IlisoiOthers0 comments – viewed 7,797 times – ( +8 ) – version 1.1
This is an incipient implementation of application-driven database with Yii.
tags: database, model

Sub-domains with different databases in Yii!

Updated 2 years ago by jwerdHow-tos3 comments – viewed 11,027 times – ( +2 ) – version 1.1
Sub-domains with different databases in Yii!

Single table inheritance

Updated 2 years ago by samdarkHow-tos6 comments – viewed 20,749 times – ( +37 ) – version 1.1
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.

Getting nulls from database instead of empty strings

Updated 2 years ago by samdarkTips2 comments – viewed 8,486 times – ( +12 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

A simple class to use a different db for a module

Updated 2 years ago by Maurizio Domba CerinTips2 comments – viewed 11,631 times – ( +9 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?

Multiple Databases and Multiple Domains

Updated 3 years ago by Maurizio Domba CerinTutorials2 comments – viewed 27,691 times – ( +14 / -2 ) – version 1.1
Add these lines in /config/main.php
tags: database