Meant to send this to the list, but had only sent it to Marco.

================================================

OK.  I HAD declared the class twice, and it was not apparent until I logged
onto the Linux server via putty to examine the directory.   My  Entites
directory contained the following two files both declaring the same class:

articles.php
Articles.php

ONLY ONE of them was present in my Zend Studio project. I had renamed the
file in Zend Studio, but it did not delete the other file on the server.
 After discovering this, I even tried a download from server and the extra
file did not come down.

 Thanks for offering to help.  It was actually your request for a gist with
file paths that caused me to discover this.   I have no idea why I decided
to log on to the server directly because I already had the project open in
Zend Studio.


On Tue, Mar 11, 2014 at 8:00 PM, Marco Pivetta <[email protected]> wrote:

>
>
> On 7 March 2014 21:10, John Wynstra <[email protected]> wrote:
>
>> I am experimenting with Doctrine 2 in ZendFramework 2 and am getting the
>> following error:
>>
>> PHP Fatal error:  Cannot redeclare class Application\\Entity\\articles in
>>
>> ../../ZendSkeletonApplication/module/Application/src/Application/Entity/articles.php
>> on line 8
>>
>
> This looks like a typo of some kind. The information provided is
> insufficient to debug the problem, though.
>
> Could you provide a gist with the file paths, autoloader config and file
> contents of the class?
>
>
> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://ocramius.github.com/
>
>


-- 
------------------------------------------------
John Wynstra
Library Information Systems Specialist
Rod Library
University of Northern Iowa
Cedar Falls, IA  50613
[email protected]
(319)273-6399
------------------------------------------------

Reply via email to