Anyone tried to use Doctrine?
7 posts
• Page 1 of 1
Anyone tried to use Doctrine?
I'm currently trying to run a few different applications we've built on Phalanger. I'm still impressed with some features but it looks like all the projects I'm trying to run on Phalanger have some quirks making it rather difficult.
Right now, I'm looking at Doctrine, a nice ORM library.
I was able to fix a few very minor things but I'm stuck with this error:
The line number seems to be wrong, it points to a comment. It's actually line 276 which causes the problem:
I'm able to avoid this error if I remove the type and use something like this:
However, I already removed 20 of them and I kind of have the impression that there's a lot more, Doctrine has a lot of files. Maybe someone out there has already done some work with Doctrine?
UPDATE: I just realized that even if I could get around those issues, I'd have to wait or implement PDO myself. At least according to this page http://wiki.php-compiler.net/Compatibility
UPDATE2: I just saw that there's someone working on it https://github.com/DEVSENSE/Phalanger/t ... nsions/PDO
Right now, I'm looking at Doctrine, a nice ORM library.
I was able to fix a few very minor things but I'm stuck with this error:
Error: (): Argument 'cacheImpl' must be of type 'Doctrine\Common\Cache\Cache' in C:\Users\Remo Laubacher\whole-in-one\ServerPrototypes\Phalanger\Doctrine\ORM\Configuration.php on line 321, column 48.
The line number seems to be wrong, it points to a comment. It's actually line 276 which causes the problem:
- Code: Select all
/**
* Sets the cache driver implementation that is used for metadata caching.
*
* @param \Doctrine\Common\Cache\Cache $cacheImpl
*/
public function setMetadataCacheImpl(Cache $cacheImpl)
{
$this->_attributes['metadataCacheImpl'] = $cacheImpl;
}
I'm able to avoid this error if I remove the type and use something like this:
- Code: Select all
/**
* Sets the cache driver implementation that is used for metadata caching.
*
* @param \Doctrine\Common\Cache\Cache $cacheImpl
*/
public function setMetadataCacheImpl($cacheImpl)
{
$this->_attributes['metadataCacheImpl'] = $cacheImpl;
}
However, I already removed 20 of them and I kind of have the impression that there's a lot more, Doctrine has a lot of files. Maybe someone out there has already done some work with Doctrine?
UPDATE: I just realized that even if I could get around those issues, I'd have to wait or implement PDO myself. At least according to this page http://wiki.php-compiler.net/Compatibility
UPDATE2: I just saw that there's someone working on it https://github.com/DEVSENSE/Phalanger/t ... nsions/PDO
- Remo
- Posts: 17
- Joined: August 17th, 2012, 3:25 pm
Re: Anyone tried to use Doctrine?
it's much less than I thought, the attached diff fixes the compile time errors. I still have to solve a few issues but it compiles for now..
You do not have the required permissions to view the files attached to this post.
- Remo
- Posts: 17
- Joined: August 17th, 2012, 3:25 pm
Re: Anyone tried to use Doctrine?
I'm again stuck with reflections )-:
It's not really a surprise but Doctrine uses a lot of them. I managed to find an alternative to ReflectionClass::getNamespaceName but ReflectionClass::getDocComment is annoying..
Anyone got an idea before I give up?
It's not really a surprise but Doctrine uses a lot of them. I managed to find an alternative to ReflectionClass::getNamespaceName but ReflectionClass::getDocComment is annoying..
Anyone got an idea before I give up?
- Remo
- Posts: 17
- Joined: August 17th, 2012, 3:25 pm
Re: Anyone tried to use Doctrine?
ReflectionClass::getNamespaceName() can be easily implemented if it helps.
ReflectionClass::getDocComment() is not so easy ... Anyone can implement it into opensource branch. Or we can do custom implementations for hourly rates - in such case please contact me directly via email below.
ReflectionClass::getDocComment() is not so easy ... Anyone can implement it into opensource branch. Or we can do custom implementations for hourly rates - in such case please contact me directly via email below.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Anyone tried to use Doctrine?
I'm afraid but I don't have any budget for this, I'm just interested to see what kind of projects I can run on Phalanger to see the potential for future projects. Right now there are no customers involved. Before I start using Phalanger for real, I have to be sure that it can deliver what I need..
- Remo
- Posts: 17
- Joined: August 17th, 2012, 3:25 pm
Re: Anyone tried to use Doctrine?
No problem, these features will be implemented sooner or later. Good thing about Phalanger is, if something is missing or performs slower - it can be improved and included in official release in very short time.
Are you using installation package or do compile Phalanger from sources (https://github.com/DEVSENSE/Phalanger) ? With the second option you can test latest feature immediately.
Are you using installation package or do compile Phalanger from sources (https://github.com/DEVSENSE/Phalanger) ? With the second option you can test latest feature immediately.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Anyone tried to use Doctrine?
I did compile PDO from Github but I haven't compiled everything yet. Seems like the VS Express edition I have is a bit annoying with multiple projects.. But I'll make sure that I have a working Github-Phalanger version. Command line compilation is nice as well
- Remo
- Posts: 17
- Joined: August 17th, 2012, 3:25 pm
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 36 guests