Permalink
Browse files

#DC-825 Table::setColumn() - the alias is now part of the column defi…

…nition
  • Loading branch information...
1 parent 1d38bd9 commit 23a814eb1b61c3746d3159f6161fbb73a2606bdf Enrico Stahn committed with estahn Aug 16, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Doctrine/Table.php
View
@@ -1374,6 +1374,10 @@ public function setColumn($name, $type = null, $length = null, $options = array(
$options['type'] = $type;
$options['length'] = $length;
+
+ if (strtolower($fieldName) != $name) {
+ $options['alias'] = $fieldName;
+ }
foreach ($defaultOptions as $key => $value) {
if ( ! array_key_exists($key, $options) || is_null($options[$key])) {

0 comments on commit 23a814e

Please sign in to comment.