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'm been running some queries (below) to help me identify when I have had time-sensitive performance issues around Memory/CPU, I didn't want to load up additional overhead to the system (unless absolutely neccessary) using traces or profiler - naturally we have various methods to do this Perfmon counters, DBCC, DMVs…
While working with data it’s not always required that we fetch all the records. Many a times we only need to fetch the first record, or some records in some index, in the record set. With LINQ we can get the desired record very easily with the help of the provided element operators.
Simple get the first record.
If you want only…
I have a dual boot (Ubuntu 12.04 and Windows 8) system. Both systems have access to an NTFS "DATA" partition which contains all my images, documents, music and some application data like Chrome and Thunderbird Profiles which used by both OS.
Everything was working fine in my Dual boot Ubuntu/Windows 7, but after updating to…
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…
Hi!
I have a website that I will be hosting DNS for (testing purposes at first and then it will have some limited traffic).
I have set up DNS so that site.tld has an A record to the actual IP but I don't know what to do about www.site.tld.
Both site.tld and www.site.tld will point to the same server /…
I have a Wildcard * A record for self-registration of subdomains by users on our web app. All works fine.
I now need to set up an alias for support.mydomain.com to point to mydomain.freshdesk.com. I created a CNAME record as per instructions however it appears my Wildcard A record is overriding the…
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…
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…
Hi,
can anybody help me how to nice integrate doctrine 2.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()
…
We are currently attempting to move away from using a "local" mail(exchange) server to an cloud based offering for all our automated emails. The problem is that we send and receive thousands for emails a day and its uptime is quite critical so the business do not want to put all their eggs in…
I have the JS file below that I am working on and I have a need to know this specific function pg.getRecord_Response = function(){ } within the file. I need to know where are the values are coming from in this function for example arguments[0].responseText? I am new to javascript so any…
Hi ,
I am doing a web application in ZF + Doctrine 1.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 doctrine 2 with zend framework 1.9.
Please give me some link or some tutorial to integrate doctrine 2.
I have worked doctrine 1.1. But now I want to integrate doctrine 2.
I think which have some different approach to add doctrine 2.
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…