doctrine 1.2 how to get an object by id?
doctrine-1.2, php, symfony-1.4
Solution
$user = Doctrine_Core::getTable('User')->find(1);
Here you go for doctrine 1.2
there is a reference here... but nowhere in doc where you would expect it :( http://docs.doctrine-project.org/projects/doctrine1/en/latest/en/manual/working-with-models.html#retrieving-related-records
Problem
How can i get an object using his Id in doctrine 1.2 ? Without writing sql or Dql. I did not find it in the docs: https://doctrine.readthedocs.org/en/latest/en/manual/working-with-models.html#fetching-objects