#1310: Doctrine can't save a mysql float value of two decimal points
-------------------------+--------------------------------------------------
  Reporter:  teixi       |       Owner:  jwage                
      Type:  defect      |      Status:  reopened             
  Priority:  major       |   Milestone:                       
 Component:  Attributes  |     Version:  1.0                  
Resolution:              |    Keywords:  alias                
  Has_test:  0           |    Mystatus:  Pending Core Response
 Has_patch:  0           |  
-------------------------+--------------------------------------------------
Changes (by enigma):

  * keywords:  => alias
  * priority:  minor => major
  * status:  closed => reopened
  * resolution:  invalid =>
  * version:  0.11 => 1.0

Comment:

 It still looks like a bug.
 I have VARCHAR column in MySQL

 {{{
 $this->hasColumn('thing', 'string', 25, array('type' => 'string',
 'notnull' => true, 'length' => '25'));
 }}}

 When I do

 {{{
 $thing = $Data['thing_'.$x]; // return 4.39
 $query->set('thing', new Doctrine_Expression("ENCODE('$thing','$_KEY')"));
 }}}

 I get error

 {{{
 Couldn't get short alias for 4
 }}}

 when I use this convention

 {{{
 set($leftSide, $rightSide, $params)
 }}}

 there's no update

-- 
Ticket URL: <http://trac.phpdoctrine.org/ticket/1310#comment:4>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to