Development

#8595 ([sfDoctrine2Plugin] The "--from" option does not exist. with ./symfony doctrine:build-model)

You must first sign up to be able to contribute.

Ticket #8595 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

[sfDoctrine2Plugin] The "--from" option does not exist. with ./symfony doctrine:build-model

Reported by: SuperDevy Assigned to: Russ
Priority: major Milestone: plugins
Component: sfDoctrinePlugin Version: 1.4.4
Keywords: sfDoctrine2Plugin, Doctrine2, plugin, task Cc:
Qualification: Unreviewed

Description

Hi,

I've just copied the sfDoctrine2Plugin. Trying to build the Model Classes following this tutorial: http://www.symfony-project.org/blog/2009/10/05/symfony-and-doctrine-2

I use a blank project generated using generate:project

I enabled the plugin in the project configuration, copied config/database.yml and config/doctrine/schema.yml from the tutorial and cleared the cache.

When I try the following command:
./symfony doctrine:build --all
./symfony doctrine:build-model[[BR]]

I obtain this error message:
The "--from" option does not exist.

PS: I also renamed all $output->writeln(...) to $output->write(...) in sfDoctrine2Plugin/lib/vendor/Symfony/Components/Console/Application.php

Change History

05/27/10 16:25:13 changed by Jonathan.Wage

  • owner changed from Jonathan.Wage to Russ.

06/02/10 14:36:24 changed by jeremyFreeAgent

I have the same issue... I think it is in the ConvertMappingCommand? class which does not have 'from', 'to', 'dest'...

08/18/10 17:33:49 changed by Dinofly

Hi, I'm new to Doctrine 2 but I am starting a new Symfony 1.4 project with Doctrine 2, and I am having this same issue with: ./symfony doctrine:build --all --and-load

I also had to manually copy the whole "plugins/sfDoctrine2Plugin/lib/vendor/Symfony/Components/Console" directory from a fresh download of a Doctrine 2 package, since the one on the SVN seems to be empty. Is it still the same path as mentionned in the blog entry ? http://svn.symfony-project.org/plugins/sfDoctrinePlugin/branches/1.3-2.0/

12/29/10 21:33:41 changed by jcauweli

  • priority changed from minor to major.

Is it possible to put some feedback here? I have the same issue "the from option does not exist"

It seems that the naming of different options in ConvertMappingCommand? (doctrine command) does not match with the naming in the corresponding symfony task "sfDoctrineConvertMappingTask"

Is this 2.0 branch of the plugin still maintained? I wouldn 't want to use something that 's more than half a year old. It seems that the latest commit dates from 8 months ago.

I changed the priority to major. With Doctrine2 being stable, we really need this plugin to function on the current stable symfony release...

06/08/11 12:09:26 changed by Russ

  • status changed from new to closed.
  • resolution set to fixed.

(In [32624]) [1.4][sfDoctrine2Plugin] Fixes #8595 - Added "from" option to convertMapping task (credit thomasez)