Hi, You couldn't use "data" previously either, you just didn't know it. We throw an exception now when you use a reserved word in your schema during building.
Though, we should try and document these types of changes as much as possible in the release docs. Thanks, Jon 2010/4/16 Michał Piotrowski <[email protected]> > 2010/4/16 Stéphane <[email protected]>: > > Hui, > > Use column alias, shoud work. > > Doesn't work here. > > Session: > columns: > id: { type: string(32), primary: true, notnull: true } > session_data: > name: session_data as data > type: string(4096) > notnull: true > time: { type: integer(4), notnull: true } > > same error > > > > > Before Printing, Think about Your Environmental Responsibility! > > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > > > > 2010/4/16 Michał Piotrowski <[email protected]> > >> > >> W dniu 16 kwietnia 2010 16:44 użytkownik Michał Piotrowski > >> <[email protected]> napisał: > >> > Hi, > >> > > >> > I noticed a regression in Symfony 1.4.4 during model rebuild. > >> > > >> > I've got a session table > >> > Session: > >> > columns: > >> > id: { type: string(32), primary: true, notnull: true } > >> > data: { type: string(4096), notnull: true } > >> > time: { type: integer(4), notnull: true } > >> > > >> > It builds fine in Symfony 1.4.3 but fails in Symfony 1.4.4 > >> >>> doctrine Dropping "doctrine" database > >> >>> doctrine Creating "dev" environment "doctrine" database > >> >>> doctrine generating model classes > >> >>> file+ /tmp/doctrine_schema_22463.yml > >> > > >> > When using the attribute ATTR_AUTO_ACCESSOR_OVERRIDE you cannot use > >> > the field name "data" because it is reserved by Doctrine. You must > >> > choose another field name. > >> > > >> > IMO this is a _regression_ - such changes shouldn't be made in > _stable_ > >> > version. > >> > > >> > Any advices what I need fix in Doctrine to get it working again? > >> > > >> > Regards, > >> > Michal > >> > > >> > >> I guess that I need to revert this change > >> http://trac.doctrine-project.org/changeset/7294#file0 > >> > >> -- > >> If you want to report a vulnerability issue on symfony, please send it > to > >> security at symfony-project.com > >> > >> You received this message because you are subscribed to the Google > >> Groups "symfony developers" group. > >> To post to this group, send email to [email protected] > >> To unsubscribe from this group, send email to > >> [email protected]<symfony-devs%[email protected]> > >> For more options, visit this group at > >> http://groups.google.com/group/symfony-devs?hl=en > > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > > You received this message because you are subscribed to the Google > > Groups "symfony developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<symfony-devs%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/symfony-devs?hl=en > > > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- Jonathan H. Wage (+1 415 992 5468) Open Source Software Developer & Evangelist sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org You should follow me on Twitter: http://www.twitter.com/jwage You can contact Jonathan about Doctrine, Symfony and Open-Source or for training, consulting, application development, or business related questions at [email protected] -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" 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.com/group/symfony-devs?hl=en
