/** * @param string $value values with starting ':' mean a column name, otherwise a regular value. * @param TableMap $table * * @return ColumnMap|mixed */ protected function getColumnOrValue($value, TableMap $table) { if (':' === substr($value, 0, 1)) { return $table->getColumn(substr($value, 1)); } else { return $value; } }