Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…nition
  • Loading branch information...
commit 23a814eb1b61c3746d3159f6161fbb73a2606bdf 1 parent 1d38bd9
Enrico Stahn authored estahn committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Doctrine/Table.php
View
4 lib/Doctrine/Table.php
@@ -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])) {
Please sign in to comment.
Something went wrong with that request. Please try again.