thank you so much!! that solved the problem, but why only happened to
us, and if it happened to everyone why hasn't been fixed?
i've cloned the github repo 05/01/2011 and still the problem was
present.

On 30 dic 2010, 11:05, pzwosta <[email protected]> wrote:
> Hi jorge,
>
> I had the same problem. Two changes in line 70 and 76 of the file
> Symfony\Bundle\DoctrineBundle\Command
> \GenerateEntitiesDoctrineCommand.php did it for me.
> On line 76 the first str_replace doesn't work as the slashes are the
> other way round in the result of getPath . Add the second str_replace
> and it works.
>
> old lines 70-76:
>
>             if ($filterBundle && $filterBundle != $class) {
>                 continue;
>             }
>
>             // transform classname to a path and substract it to get
> the destination
>             $path = dirname(str_replace('\\', '/', $class));
>             $destination = str_replace('/'.$path, "", $bundle-
>
> >getPath());
>
> new lines 70-76:
>
>             if ($filterBundle && $filterBundle != dirname($class)) {
>                 continue;
>             }
>
>             // transform classname to a path and substract it to get
> the destination
>             $path = dirname(str_replace('\\', '/', $class));
>             $destination = str_replace('/'.$path, "", str_replace('\
> \', '/', $bundle->getPath()));
>
> I call the command like this:
> php app\console doctrine:generate:entities --bundle="Application
> \MainBundle"
>
> regards
> Peter
>
> On 2 Dez., 20:52, "[email protected]" <[email protected]> wrote:
>
> > hi, my name is jorge, i've been recently working with de PR4 of the
> > symfony 2.0 sandbox, i was following the guide about symfony and
> > doctrine when i tried to generate the class for the user table that is
> > inside the guide, however the class generated wasn't in the folder
> > "Application/HelloBundle/Entity/User" , it was created in the
> > "Application/HelloBundle/Application/HelloBundle/Entity/User" folder
> > as you see the process created a new Application/HelloBundle folder
> > inside de Application/HelloBundle folder, i've been looking for
> > tickets about this and i haven't found them can anyone tell if i am
> > doing things wrong or something?
>
> > Thank you
>
>

-- 
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 users" 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-users?hl=en

Reply via email to