8000 doctrine:generate:entities destination folder error on Windows by schniper · Pull Request #42 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

doctrine:generate:entities destination folder error on Windows #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
On Win, $bundle->getPath() returns a backspace delimited path and the…
… substraction of slash delimited $path doesn't work.
  • Loading branch information
schniper committed Jan 2, 2011
commit 11f096501bcb266576a8c8b09a8d3cf083416d07
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

// transform classname to a path and substract it to get the destination
$path = dirname(str_replace('\\', '/', $class));
$destination = str_replace('/'.$path, "", $bundle->getPath());
$destination = str_replace('/'.$path, "", str_replace('\\', '/', $bundle->getPath()));

if ($metadatas = $this->getBundleMetadatas($bundle)) {
$output->writeln(sprintf('Generating entities for "<info>%s</info>"', $class));
Expand Down
0