Advertise Here

BSC-Result-Classs-9th class- university

Wednesday, 19 December 2012

Changes Related with Table Alias in Relational Active Record Yii Framework


The default alias for a relational table is now the same as the corresponding relation
name. Previously in version 1.0.x, by default Yii would automatically generate a
table alias for each relational table, and we had to use the pre x ??. to refer to this
automatically generated alias.
The alias name for the primary table in an AR query is xed to be t. Previsouly in
version 1.0.x, it was the same as the table name. This will cause existing AR query
code to break if they explicity specify column pre xes using the table name. The
solution is to replace these pre xes with 't.'.

No comments:

Post a Comment