I'm using Kohana 3 and have a /doctrine/Entites folder with my entities inside. When executing the code
$product = Doctrine::em()->find('Entities\Product', 1);
in my controller, I get the error
class_parents(): Class Entities\Product does not exist and could not be loaded
Below is the Controller (classes/controller/welcome.php):
<?php…
Hi,
I build zend app with doctrine.
The problem is when i add new tables to database and I should generate doctrine models, because I add my own code to Doctine generated classes- I dont wont to delete them.
I solve this problem like that:
1. copy old generated doctine models classes to other folder
2. generate doctrine models from database
3.…
When I use Doctrine to generate classes from Yaml/db each Base class (which includes the table definition) extends the Doctrine_Record class.
Since my app uses a master and (multiple) slave db servers I need to be able to make the Base classes extend my custom record class to force writes to go to the master db server (as described here).…
I'm running in to the issue below when trying to run the following:
$store = new Store();
$store->url =$this->form_validation->set_value('website');
$store->save();
$store_id = $store->identifier();
Fatal error: Uncaught exception 'Doctrine_Connection_Exception' with message 'Couldn't get last insert identifier.' in…
I am trying to setup a zf1 + doctrine mongo odm 1.0.0BETA4-DEV project. I am using https://github.com/Bittarman/zf-d2-odm branch but when I update doctrine version from 1.0.0BETA3 to 1.0.0BETA4-DEV, I get the following error:
SCREAM: Error suppression ignored for
( ! ) Fatal error: Call to undefined method…
I'm almost losing it, i really hope someone can help me out!
I'm using Doctrine with CodeIgniter. Everything is setup correctly and works until I generate the classes and view the website.
Fatal error: Class 'BaseObjecten' not found in /var/www/vhosts/domain.com/application/models/Objecten.php on line 13…
I have a textfield that contains say for example the following text:-
"A traditional English dish comprising sausages in Yorkshire pudding batter, usually served with vegetables and gravy."
This textfield is in a form that simply updates an item record using it's ID. If I edit part of the textfield and…
Hi,
can anybody help me how to nice integrate doctrine2.0 into ZF 1.10? I found some application resources, but there was no complete solution. Many thanks
I am making a Doctrine query and I have to do a wildcard match in the where clause. How should I escape the variable that I want to insert?
The query I want to get:
SELECT u.* FROM User as u WHERE name LIKE %var%
The php code until now:
$query = Doctrine_Query::create()
…
Hi ,
I am doing a web application in ZF + Doctrine1.2.3 but i had an old database ,
it had pretty good structure so i think i can reverse engineer it with doctrine commad
./dcotrine generate-models-db ,
its amazing but i stopped when i wanted to use some doctrine behaviors like :…
Hi,
I want to integrate doctrine2 with zend framework 1.9.
Please give me some link or some tutorial to integrate doctrine2.
I have worked doctrine1.1. But now I want to integrate doctrine2.
I think which have some different approach to add doctrine2.
Thanks
Raju Mazumder
When I build my model with the symfony doctrine:build --all --and-load command
I have made no major changes to the model/schema, this is something new. I also tried sub-commands like build-model, build-tables, but they all hang..
I'm trying this in net beans. Any clue what this is?
…
I am working with a CMS-type site in Symfony 1.4 (Doctrine 1.2) and one of the things that is frustrating me is not being able to store HTML pages in YML fixtures. Instead I have to create SQL backups of the data if I want to drop and rebuild which is a bit of a pest when…
Suppose there are two tables.
Table X--
Columns:
id x_value
Table Y--
Columns:
id x_id y_value
Now I dont want to define relationship in doctrine classes and i want to retrieve some records using these two tables using a query like this:
…
I'm lazy loading my Doctrine classes in my website. Benchmarking has showed that Doctrine::loadModels('models') takes over 100 ms to complete! I have 118 tables in total, but still...
setting attribute to conservative loading:
…
The problem:
I have a database that's running on a shared server.
I do not have permission to drop/ create a database via the command line
doctrine SQLSTATE[42000]: Syntax error or access violation: 1044 Access…
I want to use a single Doctrine install on our server and serve multiple websites. Naturally the models should be maintained in the websites' modelsfolder.
I have everything up (and not running) like so:
Doctrine @
…
How to use PHPunit's Database Test Case Methods of Query to compare with doctrine query
i m using phpunit with doctrine framework ..
i want to test my doctrine query with phpunit query with using phpunit framework…
I'd like to hear from those who have used Doctrine2 (or later) and Propel 1.5 (or later). Most comparisons between these two object relational mappers are based on old versions -- Doctrine1 versus Propel 1.3/1.4,…
I'm having trouble selecting a subset of data with doctrine.
I have 3 tables
Location
Contact
Contact_location
The contact and location tables hold a name and an id the other table holds only ID's. For instance:…
Hi,
I've got a MySQL 5.1.41 database which i'm trying to fill with doctrine, but doctrine does not insert the relations correctly. My YAML is:
Locatie:
connection: doctrine
tableName: locatie
columns:
…
I have some big problems with symfony and doctrine at the beginning of a new project. I have created database diagram with mysql workbench, inserted the sql into phpmyadmin and then I've tried symfony…
I am beginning to work with Symfony, I've found some documentation about inheritance. But also found this discouraging article, which make me doubt if Doctrine handles inheritance any good at all...
…