Questions tagged [zfdoctrine]

19 questions
6
votes
3 answers

Extending the user entity of ZfcUserDoctrineORM in ZF2

I'm quite new to ZF2. I have a bunch of doctrine entities from my project in ZF1, one being a User entity. I'm trying to extend \ZfcUserDoctrineORM\Entity\User so that I can inclue my old relationships - but with no great success. If I try and run…
briangallagher
  • 539
  • 4
  • 15
3
votes
1 answer

zend framework 2 with doctrine, How to reopen the Entitymanager after it was closed by a Exception

Within an entity's repository, I want to fetch the entity with a given id or create a new one, if the given id is not used so far. My solution is, to create a new entity with the id. If it is possible I return it, if not I want to load the excisting…
exoon
  • 39
  • 2
2
votes
1 answer

ZF, ZFDoctrine and PHPUnit setup

Does anyone here use Zend Framework, ZFDoctrine and PHPUnit together? How to rebuild the database on each test run? How to separate local/production/testing environments? Would you share your unit testing setup? I have been trying something like…
takeshin
  • 49,108
  • 32
  • 120
  • 164
2
votes
2 answers

Fatal error: Cannot use object of type User\Entity\User as array

The problem is: error: => Fatal error: Cannot use object of type User\Entity\User as array in ../module/User/view/user/index/index.phtml My class is: class IndexController extends…
user3333854
  • 41
  • 1
  • 2
  • 5
2
votes
1 answer

ZF2 inputfilter doctrine NoObjectExists editing object does not validate

So i got a ZF2 application, got a Form and a InputFilter in the InputFilter i have: $this->add( array( 'name' => 'email', 'required' => true, 'validators' => array( array( …
1
vote
1 answer

What should I change (Bisna-wise) in zend framework's application.ini when upgrading to Doctrine 2.2?

If I don't do anything, I get errors of the annotation driver. I've read the upgrade doc, and know about the "use" statements to define the namespace of the annotations. HOWEVER - I do not want to go over all my entities and add that to each…
Doron
  • 3,176
  • 7
  • 35
  • 60
1
vote
1 answer

Help me correct my php include path on windows 7, i've hit a block

i've been suggested to use the ZFDotrine from a post here but right now it turns out to be kind of headache where i don't know why zf can't see the zfdoctrine provider. I have a kind of shady environment on my windows 7.i have xampp 1.7.3 and zend…
black sensei
  • 6,528
  • 22
  • 109
  • 188
1
vote
0 answers

Saving value in database having type time using doctrine 2 orm

I'm trying to save data using ZF2 Doctrine ORM Module using dynamic paramter as entity class name and initializing its object and saving data using dynamic values from excel sheet header, $time =…
Vipul
  • 655
  • 2
  • 6
  • 22
1
vote
2 answers

Custom repository for Doctrine and ZF2

I'm using ZF2 with Doctrine and I would like to use a repository but I've this error: The class 'Application\Repository\EventRepository' was not found in the chain configured namespaces Application\Entity The entity: namespace…
skurty
  • 738
  • 1
  • 11
  • 26
1
vote
2 answers

zf2 generating entity with doctrine ORM

I have Entity classes generated with Doctrine ORM, and ZF2. I changed a table structure and I want to update an entity class, so I am trying to regenerate the entity class but it's not working. I used the following…
notnotundefined
  • 3,493
  • 3
  • 30
  • 39
1
vote
1 answer

One to many mapping in Zend Framwork 2 with doctrine 2

How to use sql joins in zend framwork 2 with Doctrine 2 ? I want to join to column std_id in student table and user id in user table .
Nimesha
  • 185
  • 1
  • 1
  • 10
0
votes
1 answer

Doctrine 1.2 getResultCache and Left Joins

If I use relations for collection without caching, I have 1 query. With caching this query splits into a lot of small queries. One query: $foobars = Doctrine_Query::create() ->from('Project_Model_Table table') ->leftJoin('table.Table1…
Skywalker
  • 1
  • 1
0
votes
1 answer

ZF2: how to translate Form annotations?

Is it a way to translate annotations in docscommment ? Here is an example of my actual code: /** * * The Item Name * @var string * @Annotation\Options({"label":"Name"}) * @Annotation\Attributes({"type":"text"}) *…
0
votes
2 answers

Editing manytomany association doctrine2 and zf2

I have a scenario like this: Hmo has a bidirectional Many2Many association with Hcp. What i mean is Hmo can add Hcp, Hcp should be able to view its Hmos and view some other information about an Hmo. I have already created several Hmos and Hcps so…
dasersoft
  • 155
  • 2
  • 13
0
votes
1 answer

ZF2 and Doctrine2 weird print

I'm trying to integrate Doctrine2 and ZF2. I can succesfully create a Doctrine Entity and then sync it to my database so the table is created but when I go to the webpage this appears: See those weird characters at the top of the page, and yes, the…
vicaba
  • 2,836
  • 1
  • 27
  • 45
1
2